/** * Return this dashlet's structure as array * * @return array */ public function toArray() { $array = array('url' => $this->url->getRelativeUrl(), 'title' => $this->getTitle()); if ($this->getDisabled() === true) { $array['disabled'] = 1; } return $array; }