예제 #1
0
파일: try.php 프로젝트: cseufert/hamle
 function getNamedModel($name, $id = NULL)
 {
     if ($name == "basetest") {
         return new WrapArray(array(array('url' => 'http://www.test.com', 'title' => 'Test.com'), array('url' => 'http://www.test2.com', 'title' => 'Test2.com'), array('url' => 'http://www.test3.com', 'title' => 'Test3.com')));
     }
     return parent::getNamedModel($name, $id);
 }
예제 #2
0
파일: base.php 프로젝트: cseufert/hamle
 function getModelTypeTags($typeTags, $sortDir = 0, $sortField = "", $limit = 0, $offset = 0)
 {
     if (in_array("basetest", array_keys($typeTags))) {
         return new WrapArray(array(array('url' => 'http://www.test.com', 'title' => 'Test.com'), array('url' => 'http://www.test2.com', 'title' => 'Test2.com'), array('url' => 'http://www.test3.com', 'title' => 'Test3.com')));
     }
     if (in_array("formtest", array_keys($typeTags))) {
         return new WrapArray(array(array('title' => 'The Title', 'testform' => new formTestForm())));
     }
     return parent::getModelTypeTags($typeTags, $sortDir = 0, $sortField = "", $limit = 0, $offset = 0);
 }