Commit 5d93e841 authored by sept_7's avatar sept_7

[FIX] Coding Style : sizeof -> count, class definition

parent 10b1b605
......@@ -65,10 +65,10 @@ class ObjectList
$renderer->render($smarty, $options);
}
}
} // }}}
abstract class ObjectRenderer
// {{{
{
} // }}}
abstract class ObjectRenderer
// {{{
{
protected $objectType;
protected $objectId;
function __construct($objectType, $objectId) {
......@@ -86,9 +86,9 @@ class ObjectList
abstract function _render($smarty, $template);
abstract function getIndexValue($key);
} // }}}
class ObjectRenderer_TrackerItem extends ObjectRenderer
// {{{
{
class ObjectRenderer_TrackerItem extends ObjectRenderer
// {{{
{
private static $trackers = array();
private $valid = false;
private $tracker;
......@@ -136,10 +136,11 @@ class ObjectList
if ($field['isMain'] == 'y') return $field['value'];
}
}
} // }}}
class ObjectRenderer_Wiki extends ObjectRenderer
// {{{
{
} // }}}
class ObjectRenderer_Wiki extends ObjectRenderer
// {{{
{
private $info;
function __construct($objectType, $objectId) {
parent::__construct($objectType, $objectId);
......@@ -160,9 +161,10 @@ class ObjectList
}
}
} // }}}
class ObjectRenderer_MultilingualWiki extends ObjectRenderer
// {{{
{
class ObjectRenderer_MultilingualWiki extends ObjectRenderer
// {{{
{
private $renderers = array();
function __construct($type, $object, $options = array()) {
parent::__construct($type, $object, $options);
......@@ -197,8 +199,9 @@ class ObjectList
}
return reset($this->renderers)->getIndexValue($key);
}
} // }}}
// End of classes }}}
} // }}}
// End of classes }}}
$objectList = new ObjectList;
$objectList->addCustomIndex('title');
$indexPages = array();
......@@ -254,4 +257,4 @@ class ObjectList
$objectList->render($smarty, 'title', array('decorator' => 'indexed', 'display' => 'object'));
$smarty->display('print/print-page_footer.tpl');
$smarty->display('footer.tpl');
\ No newline at end of file
......@@ -61,7 +61,7 @@ if (isset($_REQUEST['action'])) {
chdir('tiki_tests/tests');
$files = glob('*.xml');
chdir('../..');
$files_number = sizeof($files);
$files_number = count($files);
$files = array_slice($files,$offset,$files_per_page);
$smarty->assign_by_ref("files",$files);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment