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); }
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); }