web/lib/Zend/Tool/Framework/Metadata/Dynamic.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Tool
    16  * @package    Zend_Tool
    17  * @subpackage Framework
    17  * @subpackage Framework
    18  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @version    $Id: Dynamic.php 20096 2010-01-06 02:05:09Z bkarwin $
    20  * @version    $Id: Dynamic.php 24593 2012-01-05 20:35:02Z matthew $
    21  */
    21  */
    22 
    22 
    23 /**
    23 /**
    24  * @see Zend_Tool_Framework_Metadata_Interface
    24  * @see Zend_Tool_Framework_Metadata_Interface
    25  */
    25  */
    31 require_once 'Zend/Tool/Framework/Metadata/Attributable.php';
    31 require_once 'Zend/Tool/Framework/Metadata/Attributable.php';
    32 
    32 
    33 /**
    33 /**
    34  * @category   Zend
    34  * @category   Zend
    35  * @package    Zend_Tool
    35  * @package    Zend_Tool
    36  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    36  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    37  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    37  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    38  */
    38  */
    39 class Zend_Tool_Framework_Metadata_Dynamic 
    39 class Zend_Tool_Framework_Metadata_Dynamic
    40     implements Zend_Tool_Framework_Metadata_Interface, Zend_Tool_Framework_Metadata_Attributable
    40     implements Zend_Tool_Framework_Metadata_Interface, Zend_Tool_Framework_Metadata_Attributable
    41 {
    41 {
    42 
    42 
    43     /**
    43     /**
    44      * @var string
    44      * @var string
    64     {
    64     {
    65         if ($options) {
    65         if ($options) {
    66             $this->setOptions($options);
    66             $this->setOptions($options);
    67         }
    67         }
    68     }
    68     }
    69     
    69 
    70     public function setOptions(Array $options = array())
    70     public function setOptions(Array $options = array())
    71     {
    71     {
    72         foreach ($options as $optName => $optValue) {
    72         foreach ($options as $optName => $optValue) {
    73             $methodName = 'set' . $optName;
    73             $methodName = 'set' . $optName;
    74             $this->{$methodName}($optValue);
    74             $this->{$methodName}($optValue);
    75         }
    75         }
    76     }
    76     }
    77     
    77 
    78     /**
    78     /**
    79      * setType()
    79      * setType()
    80      * 
    80      *
    81      * @param $type
    81      * @param string $type
    82      * @return Zend_Tool_Framework_Metadata_Dynamic
    82      * @return Zend_Tool_Framework_Metadata_Dynamic
    83      */
    83      */
    84     public function setType($type)
    84     public function setType($type)
    85     {
    85     {
    86         $this->_type = $type;
    86         $this->_type = $type;
    87         return $this;
    87         return $this;
    88     }
    88     }
    89     
    89 
    90     /**
    90     /**
    91      * getType()
    91      * getType()
    92      *
    92      *
    93      * The type of metadata this describes
    93      * The type of metadata this describes
    94      *
    94      *
    99         return $this->_type;
    99         return $this->_type;
   100     }
   100     }
   101 
   101 
   102     /**
   102     /**
   103      * setName()
   103      * setName()
   104      * 
   104      *
   105      * @param $name
   105      * @param string $name
   106      * @return Zend_Tool_Framework_Metadata_Dynamic
   106      * @return Zend_Tool_Framework_Metadata_Dynamic
   107      */
   107      */
   108     public function setName($name)
   108     public function setName($name)
   109     {
   109     {
   110         $this->_name = $name;
   110         $this->_name = $name;
   111         return $this;
   111         return $this;
   112     }
   112     }
   113     
   113 
   114     /**
   114     /**
   115      * getName()
   115      * getName()
   116      *
   116      *
   117      * Metadata name
   117      * Metadata name
   118      *
   118      *
   123         return $this->_name;
   123         return $this->_name;
   124     }
   124     }
   125 
   125 
   126     /**
   126     /**
   127      * setValue()
   127      * setValue()
   128      * 
   128      *
   129      * @param $value
   129      * @param mixed $value
   130      * @return Zend_Tool_Framework_Metadata_Dynamic
   130      * @return Zend_Tool_Framework_Metadata_Dynamic
   131      */
   131      */
   132     public function setValue($value)
   132     public function setValue($value)
   133     {
   133     {
   134         $this->_value = $value;
   134         $this->_value = $value;
   135         return $this;
   135         return $this;
   136     }
   136     }
   137     
   137 
   138     /**
   138     /**
   139      * getValue()
   139      * getValue()
   140      *
   140      *
   141      * Metadata Value
   141      * Metadata Value
   142      *
   142      *