<?php
//Include jAPI Core and jAPIBaseClass
include("jAPI-CORE.php");
//Bellow is some demo classes with some basic functions
class MySimpleMath{
public function Addition($firstParam, $seccondParam) {
$sum = $firstParam+$seccondParam;
echo $sum;
}
public function CompareNumbers($firstNum, $seccondNum) {
$comparingResults = ($firstNum == $seccondNum)?"The numbers are equal":"The number is not equal";
echo $comparingResults;
}
}
class MyStringMixer{
public function ReverseString($inputString) {
echo strrev($inputString);
}
public function JustSayHi($name) {
echo "Hello ".$name;
}
}
//Create new instance of jAPIBaseClass with names of all classes that you want to use separeted with comma...
new jAPIBaseClass('MySimpleMath,MyStringMixer');
?>
|