kostache/classes/view/striping.php
2010-05-18 09:19:21 -05:00

28 lines
496 B
PHP

<?php
class View_Striping extends Kostache
{
protected $_pragmas = array(Kostache::PRAGMA_DOT_NOTATION => TRUE);
public $title = 'Testing';
public function things()
{
return Inflector::plural(get_class(new Model_Test));
}
public function tests()
{
$results = array();
foreach (AutoModeler::factory('test')->fetch_all() as $test)
{
$array = array(
'class' => text::alternate('even', 'odd'),
'object' => $test
);
$results[] = $array;
}
return $results;
}
}