public function __construct($id) { parent::__construct($id); $this->sources = array(); }
/** * Конструктор * @param string ID компонента * @param string адрес изображения */ public function __construct($id, $src = "") { parent::__construct($id); $this->src = $src; }