/** * Construct * * @param string $template * @param string $title * @param string $icon * @param int $width */ public function __construct($template, $title, $icon = null, $width = 160) { parent::__construct(null, null, false, false, $width, false, null); $this->_template = $template; $this->_templateTitle = $title; $this->_icon = $icon; }
/** * Constructor * * @param string $title * @param string|array $path * @param string $column * @param string $orderBy * @param string $separator * @param int $count * @param int $width */ public function __construct($title, $path = null, $column = null, $orderBy = null, $separator = ',', $count = 5, $width = 450, $isEditable = true) { parent::__construct($title, null, false, false, $width, $isEditable, null); $this->_path = $path; $this->_column = $column; $this->_orderBy = $orderBy; $this->_separator = $separator; $this->_count = $count; }
/** * Construct * * @param array $columns * @param string $title * @param string $separator * @param int $width */ public function __construct(array $columns, $title = null, $separator = ", ", $width = 160) { parent::__construct($title, null, false, false, $width, false, null); $this->_columns = $columns; $this->_separator = $separator; }