function __construct($core, $title, $text = NULL) { if (is_string($title)) { // not a data array $title = array('title' => $title, 'text' => $text); } parent::__construct($core, $title); }
function __construct($core, $title, $body = NULL) { if (is_string($title)) { // not a data array $title = array('title' => $title, 'body' => $body); } if (isset($title['imageinfo']) && is_array($title['imageinfo'])) { $title = array_merge($title, $title['imageinfo']); unset($title['imageinfo']); } parent::__construct($core, $title); }