/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's `$instance`, * or a new `$instance` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. * * @throws \xd_v141226_dev\exception If invalid types are passed through arguments list. */ public function __construct($instance, $menu_page) { parent::__construct($instance); $this->check_arg_types('', $this->instance->core_ns_prefix . '\\menu_pages\\menu_page', func_get_args()); $this->slug = $this->instance->ns_class_basename; $this->slug = $this->©string->with_dashes($this->slug); $this->menu_page = $menu_page; }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's `$instance`, * or a new `$instance` array. * * @param array $properties An array of package properties. */ public function __construct($instance, $properties) { $this->check_arg_types('', array('array:!empty', 'object:!empty'), func_get_args()); parent::__construct($instance); $this->set_properties($properties); foreach ($this->dependencies as &$_dependency) { $_dependency = $this->©package__dependency($_dependency); } unset($_dependency); // Housekeeping. }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's `$instance`, * or a new `$instance` array. */ public function __construct($instance) { parent::__construct($instance); $this->slug = $this->instance->ns_class_basename; $this->slug = $this->©string->with_dashes($this->slug); if ($this->updates_options) { $this->option_form_fields = $this->©form_fields(array('for_call' => '©options.®update', 'name_prefix' => $this->©action->input_name_for_call_arg(1), 'use_update_markers' => TRUE)); } }