/** * Print available tabs widget setting */ public function render_available_tabs() { // get all screens from the registry $items = $this->policy->registry()->get_all(); // make sure we got some items if (count($items)) { // new script helper $script = new ICE_Script(); $logic = $script->logic(); foreach ($items as $item) { // add variable $logic->av($item->property('name'), $item->property('title')); } print $logic->export_variables(true); } else { print '{}'; } }
/** * @return ICE_Screen_Policy */ public static function instance() { self::$calling_class = __CLASS__; return parent::instance(); }