예제 #1
0
 public function __construct($id = false, $table = false, $ds = null)
 {
     parent::__construct($id, $table, $ds);
     ConnectionManager::create('array', array('datasource' => 'Datasources.ArraySource'));
     $this->records = array(array('id' => 1, 'name' => 'Foo', 'flag' => 3), array('id' => 2, 'name' => 'Bar', 'flag' => 7));
 }
예제 #2
0
 public function __construct($id = false, $table = false, $ds = null)
 {
     ConnectionManager::create('array', array('datasource' => 'Datasources.ArraySource'));
     $this->records = array(array('id' => 1, 'title' => 'Foo', 'content' => '<b>Bold text</b>', 'published' => '2012-01-04 11:12:13'), array('id' => 2, 'title' => 'Bar', 'content' => '<i>Italic text</b>', 'published' => '2012-07-04 11:12:13'));
     parent::__construct($id, $table, $ds);
 }