/** * Constructor. * * @param array $data */ public function __construct(array $data) { parent::__construct($data); $this->title = isset($data['title']) ? $data['title'] : null; if (null !== $this->name && false !== strpos($this->name, ':')) { list($this->ncName, $this->reference) = explode(':', $this->name, 2); } }
public function __construct($id, $callback, $callDecorator = null) { parent::__construct($id); Args::callBackArgs($callback, 1, 'callback'); $this->eventBehaviour = new AjaxEventBehaviour('onclick', $callback); $this->add($this->eventBehaviour); $this->callback = $callback; }
function __construct($hp = 0) { parent::__construct(); $this->set_type(LINK_EXERCISE); $this->is_hp = $hp; if ($this->is_hp == 1) { $this->set_type(LINK_HOTPOTATOES); } }
function __construct() { parent::__construct(); $this->set_type(LINK_LEARNPATH); }
/** * Constructor */ public function __construct() { parent::__construct(); $this->set_type(LINK_FORUM_THREAD); }
/** * Constructor */ public function __construct() { parent::__construct(); $this->set_type(LINK_ATTENDANCE); }
/** * Constructor */ function __construct() { parent::__construct(); }
/** * Constructor */ public function __construct() { parent::__construct(); $this->set_type(LINK_STUDENTPUBLICATION); }
public function __construct($id, $callback) { parent::__construct($id); Args::callBack($callback, 'callback'); $this->callback = $callback; }
public function __construct() { parent::__construct(); $this->set_type(LINK_SURVEY); }
public function __construct($id, $name = '') { parent::__construct($id); $this->name = $name; }