Пример #1
0
 /**
  * Remove an option from the composite.	
  * 
  * @param string $name  The option to be removed from the composite.
  * @return boolean 		True if existed and removed, False otherwise.
  * @access public
  */
 function removeChild($name)
 {
     $newValue = $this->getValue();
     if ($newValue[$name]) {
         //only remove images sizes that are allowed to be removed
         unset($newValue[$name]);
         $this->setValue($newValue);
         return parent::removeChild($name);
     }
     return false;
 }