qoob = \qoob::open(); } function blah() { echo "
blah test method.
"; } function dating($args) { echo 'date test method.
'.print_r($args, true).""; } static function staticMethod($args) { echo '
static method test.
'; } function modelTest(){ $this->qoob->benchmark->mark('modelLoadStart'); $this->qoob->load('app\model\codeModel'); $this->qoob->benchmark->mark('modelLoadEnd'); $this->qoob->benchmark->mark('modelAddStart'); $this->qoob->codeModel->addCode('hello', 'world'); $this->qoob->benchmark->mark('modelAddEnd'); $this->qoob->benchmark->mark('modelIdStart'); $id = $this->qoob->codeModel->getID(); $this->qoob->benchmark->mark('modelIdend'); echo 'added new id: '.$id.'".print_r($result, true).""; } function templateTest() { $url = \library::get('QOOB.domain').'/'; $this->qoob->load('qoob\core\view\stache'); //roman numeral year $N = date('Y'); $c='IVXLCDM'; for($a=5,$b=$s='';$N;$b++,$a^=7) for($o=$N%$a,$N=$N/$a^0;$o--;$s=$c[$o>2?$b+$N-($N&=-2)+$o=1:$b].$s); $this->qoob->stache->render( 'templateTest', array( 'author' => \library::get('CONFIG.GENERAL.author'), 'copyright' => \library::get('CONFIG.GENERAL.copyrightHTML'), 'keywords' => \library::get('CONFIG.GENERAL.keywords'), 'description' => \library::get('CONFIG.GENERAL.description'), 'domain' => $url, 'year'=> $s, 'title'=> 'open qoob', 'bodyCopy'=>'a semi-RESTful php api framework designed to simplify and expedite the process of creating dynamic web applications.' ) ); } } ?>