Example #1
0
 /**
  * Copies all user properties that have not been set on the
  * command line or a GUI tool from this instance to the Project
  * instance given as the argument.
  *
  * <p>To copy all "user" properties, you will also have to call
  * {@link #copyUserProperties copyUserProperties}.</p>
  *
  * @param Project $other the project to copy the properties to.  Must not be null.
  *
  * @since phing 2.0
  */
 public function copyInheritedProperties(Project $other)
 {
     foreach ($this->userProperties as $arg => $value) {
         if ($other->getUserProperty($arg) !== null) {
             continue;
         }
         $other->setInheritedProperty($arg, $value);
     }
 }
Example #2
0
 /**
  * Sets an inherited property. Proxies the request to the underlying project.
  *
  * @param      string The name of the property.
  * @param      mixed The value of the property.
  *
  * @author     Noah Fontes <*****@*****.**>
  * @since      1.0.0
  */
 public function setInheritedProperty($name, $value)
 {
     if (!self::isPropertyProtected($name)) {
         $this->proxied->setInheritedProperty($name, $value);
     }
     parent::setInheritedProperty($name, $value);
 }