public function __construct($p_attributes, $p_content = '') { Assert::type(__METHOD__, 'is_array($p_attributes)', is_array($p_attributes)); Assert::type(__METHOD__, 'is_string($p_content)', is_string($p_content)); parent::__construct(); $this->m_attributes = $p_attributes; $this->m_content = $p_content; }
/** * put your comment there... * * @param mixed $id * @param mixed $name * @param mixed $className * @return HTMLCheckboxList */ public function __construct($id, $name, $title = '', $className = self::LIST_CLASS_NAME) { // Identify component file. parent::__construct(__FILE__); // Initialize class properties. $this->id = $id; $this->className = $className; $this->title = $title; // Initialize default values. $this->itemDefaults = (object) array('name' => $name, 'className' => self::ITEM_CLASS_NAME, 'selectedClassName' => self::ITEM_SELECTED_CLASS_NAME); }
public function __construct($p_tag, $p_attributes = array(), $p_content = '', $p_components = array()) { Assert::type(__METHOD__, 'is_string($p_tag)', is_string($p_tag)); Assert::type(__METHOD__, 'is_array($p_attributes)', is_array($p_attributes)); Assert::type(__METHOD__, 'is_string($p_content)', is_string($p_content)); Assert::type(__METHOD__, 'is_array($p_components)', is_array($p_components)); parent::__construct(); $this->m_tag = $p_tag; $this->m_attributes = $p_attributes; $this->m_content = $p_content; if (sizeof($p_components) > 0) { for ($i = 0; $i < sizeof($p_components); ++$i) { $this->add($p_components[$i]); } } else { $this->m_components = array(); } }
public function __construct($p_content = '') { Assert::type(__METHOD__, 'is_string($p_content)', is_string($p_content)); parent::__construct(); $this->m_content = $p_content; }
public function __construct($p_attributes) { Assert::type(__METHOD__, 'is_array($p_attributes)', is_array($p_attributes)); parent::__construct(); $this->m_attributes = $p_attributes; }