Ejemplo n.º 1
0
 /**
  * Adds a dependency where this setting is dependent on another.
  *
  * This should only be called internally once we are sure it is not cicrular.
  *
  * @param setting_dependency $dependency
  */
 protected function register_dependent_dependency(setting_dependency $dependency)
 {
     $this->dependenton[$dependency->get_setting()->get_name()] = $dependency;
 }
Ejemplo n.º 2
0
 /**
  * Creates the dependency
  *
  * @param base_setting $setting
  * @param base_setting $dependentsetting
  * @param mixed $value
  * @param mixed $defaultvalue
  */
 public function __construct(base_setting $setting, base_setting $dependentsetting, array $value, $defaultvalue = false)
 {
     parent::__construct($setting, $dependentsetting, $defaultvalue);
     $this->value = $value;
 }