コード例 #1
0
 public function getTranslatedDescription()
 {
     if ($this->_additionalField) {
         return $this->_additionalField->getTranslatedDescription();
     }
     return parent::getTranslatedDescription();
 }
 public function __construct($optionDescriptorName)
 {
     $odr = tubepress_impl_patterns_sl_ServiceLocator::getOptionDescriptorReference();
     $this->_optionDescriptor = $odr->findOneByName($optionDescriptorName);
     if ($this->_optionDescriptor === null) {
         throw new InvalidArgumentException(sprintf('Could not find option with name "%s"', $optionDescriptorName));
     }
     parent::__construct($optionDescriptorName, $this->_optionDescriptor->getLabel(), $this->_optionDescriptor->getDescription());
 }