protected function fill($raw) { parent::fill($raw); if (is_object($raw)) { $this->data['id'] = $raw->ID; $this->data['ID'] = $raw->ID; } }
public function __construct($args = null) { $this->position = 0; $this->locations = get_nav_menu_locations(); parent::__construct($args); }