/** * @access public * @static * @param array $attrs (default: array()) * @return void */ public static function forge(array $attrs = array()) { is_null(self::$helper) and self::$helper = Bootstrap::forge('html'); // increment instance num, if we need to render more tan than 1 tabs element self::$inst_num++; return new self($attrs); }
/** * Called by the autoloader * We user le class Bootstrap as an internal helper. * PHP 5.4 Traits will be welcome here... * for common tasks * * @access public * @static * @return void */ public static function _init() { is_null(static::$helper) and static::$helper = Bootstrap::forge('html'); }
/** * Bootstrap pager. * * @access public * @static * @param mixed $prev_value * @param mixed $next_value * @param array $attrs (default: array()) * @return void */ public static function pager($prev_value, $next_value, $attrs = array()) { $prev = parent::prev_link($prev_value); $next = parent::next_link($next_value); if (is_null(self::$helper)) { self::$helper = Bootstrap::forge('pagination'); } self::$helper->merge_classes($attrs, array('pager')); return html_tag('ul', $attrs, $prev . $next); }
public static function forge(array $attrs = array()) { is_null(self::$helper) and self::$helper = Bootstrap::forge('html'); return new self($attrs); }