function __construct($args) { parent::__construct($args); //Dispatch arguments $this->name = $this->item[1]; $this->text = $this->item[2]; $this->task = $this->item[3]; $this->list = $this->item[4]; //Class if (isset($this->item[5])) { $this->addClass($this->item[5]); } }
function __construct($args) { parent::__construct($args); //Dispatch arguments $this->name = $this->item[1]; $this->text = $this->item[2]; //Class if (isset($this->item[4])) { $this->addClass($this->item[4]); } //Define the modal link $this->href = $this->item[3]; $this->target = 'modal'; }