public function __construct($name)
 {
     parent::__construct();
     $ioc = org_tubepress_impl_ioc_IocContainer::getInstance();
     $odr = $ioc->get(org_tubepress_api_options_OptionDescriptorReference::_);
     $this->_optionDescriptor = $odr->findOneByName($name);
     if ($this->_optionDescriptor === null) {
         throw new Exception('Could not find option with name "%s"');
     }
     if ($this->_optionDescriptor->isApplicableToVimeo()) {
         array_push($this->_providerArray, org_tubepress_api_provider_Provider::VIMEO);
     }
     if ($this->_optionDescriptor->isApplicableToYouTube()) {
         array_push($this->_providerArray, org_tubepress_api_provider_Provider::YOUTUBE);
     }
 }
 public function __construct($optionDescriptors, $name, $description = '')
 {
     parent::__construct();
     if (!is_array($optionDescriptors)) {
         throw new Exception('Option descriptors must be an array');
     }
     foreach ($optionDescriptors as $optionDescriptor) {
         if (!$optionDescriptor instanceof org_tubepress_api_options_OptionDescriptor) {
             throw new Exception('Non option descriptor detected');
         }
         if (!$optionDescriptor->isBoolean()) {
             throw new Exception('Non-boolean option descriptor detected');
         }
     }
     if (!is_string($name)) {
         throw new Exception('Label must be a string');
     }
     $this->_optionDescriptors = $optionDescriptors;
     $this->_name = $name;
 }