public function set_value($value)
 {
     global $CFG;
     $localhostwwwroot = backup_plan_dbops::get_mnet_localhost_wwwroot();
     // If user wwwroot matches mnet local host one or if
     // there isn't associated wwwroot, skip sending it to file
     if ($localhostwwwroot == $value || empty($value)) {
         // Do nothing
     } else {
         parent::set_value($value);
     }
 }
Beispiel #2
0
 public function set_value($value)
 {
     // Get grandparent name
     $gpname = $this->get_grandparent()->get_name();
     // Get parent name
     $pname = $this->get_parent()->get_name();
     // Get my name
     $myname = $this->get_name();
     // Define class and function name
     $classname = 'mock_' . $gpname . '_' . $pname . '_interceptor';
     $methodname = 'intercept_' . $pname . '_' . $myname;
     // Invoke the interception method
     $result = call_user_func(array($classname, $methodname), $value);
     // Finally set it
     parent::set_value($result);
 }
 /**
  * Set the value for the final element, encoding it as utf-8/xml safe base64.
  *
  * @param string $value Original value coming from backup step source, usually db.
  */
 public function set_value($value)
 {
     parent::set_value(base64_encode($value));
 }