当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Form_Element_Hidden::setLabel方法代码示例

本文整理汇总了PHP中Zend_Form_Element_Hidden::setLabel方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Form_Element_Hidden::setLabel方法的具体用法?PHP Zend_Form_Element_Hidden::setLabel怎么用?PHP Zend_Form_Element_Hidden::setLabel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend_Form_Element_Hidden的用法示例。


在下文中一共展示了Zend_Form_Element_Hidden::setLabel方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addProviderElements

 protected function addProviderElements()
 {
     $element = new Zend_Form_Element_Hidden('providerElements');
     $element->setLabel('YouTube Specific Configuration');
     $element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElements(array($element));
     // General
     $this->addElement('text', 'username', array('label' => 'YouTube Account:', 'filters' => array('StringTrim')));
     // General
     $this->addElement('text', 'password', array('label' => 'YouTube Password:', 'filters' => array('StringTrim')));
     //		$this->addMetadataProfile();
     $this->addDisplayGroup(array('username', 'password'), 'general', array('legend' => 'General', 'decorators' => array('FormElements', 'Fieldset')));
     $this->addMetadataProfile(true);
     // taken from http://gdata.youtube.com/schemas/2007/categories.cat
     $youTubeCategories = array('Film' => 'Film & Animation', 'Autos' => 'Autos & Vehicles', 'Music' => 'Music', 'Animals' => 'Pets & Animals', 'Sports' => 'Sports', 'Travel' => 'Travel & Events', 'Shortmov' => 'Short Movies', 'Videoblog' => 'Videoblogging', 'Games' => 'Gaming', 'Comedy' => 'Comedy', 'People' => 'People & Blogs', 'News' => 'News & Politics', 'Entertainment' => 'Entertainment', 'Education' => 'Education', 'Howto' => 'Howto & Style', 'Nonprofit' => 'Nonprofits & Activism', 'Tech' => 'Science & Technology', 'Movies_Anime_animation' => 'Movies - Anime/Animation', 'Movies' => 'Movies', 'Movies_Comedy' => 'Movies - Comedy', 'Movies_Documentary' => 'Movies - Documentary', 'Movies_Action_adventure' => 'Movies - Action/Adventure', 'Movies_Classics' => 'Movies - Classics', 'Movies_Foreign' => 'Movies - Foreign', 'Movies_Horror' => 'Movies - Horror', 'Movies_Drama' => 'Movies - Drama', 'Movies_Family' => 'Movies - Family', 'Movies_Shorts' => 'Movies - Shorts', 'Shows' => 'Shows', 'Movies_Sci_fi_fantasy' => 'Movies - Sci-Fi/Fantasy', 'Movies_Thriller' => 'Movies - Thriller', 'Trailers' => 'Trailers');
     //  Metadata
     $this->addElement('select', 'default_category', array('label' => 'Default Category:', 'multioptions' => $youTubeCategories));
     $this->addDisplayGroup(array('default_category', 'metadata_profile_id'), 'metadata', array('legend' => 'Metadata', 'decorators' => array('FormElements', 'Fieldset')));
     // Community
     $this->addElement('select', 'allow_comments', array('label' => 'Allow Comments:', 'multioptions' => array('allowed' => 'allowed', 'denied' => 'denied', 'moderated' => 'moderated')));
     $this->addElement('select', 'allow_embedding', array('label' => 'Allow Embedding:', 'multioptions' => array('allowed' => 'allowed', 'denied' => 'denied')));
     $this->addElement('select', 'allow_ratings', array('label' => 'Allow Ratings:', 'multioptions' => array('allowed' => 'allowed', 'denied' => 'denied')));
     $this->addElement('select', 'allow_responses', array('label' => 'Allow Responses:', 'multioptions' => array('allowed' => 'allowed', 'denied' => 'denied', 'moderated' => 'moderated')));
     $this->addDisplayGroup(array('allow_comments', 'allow_embedding', 'allow_ratings', 'allow_responses'), 'community', array('legend' => 'Community', 'decorators' => array('FormElements', 'Fieldset')));
 }
开发者ID:richhl,项目名称:kalturaCE,代码行数:25,代码来源:YoutubeApiProfileConfiguration.php

示例2: addProviderElements

 protected function addProviderElements()
 {
     $this->setDescription('Unicorn Distribution Profile');
     $element = new Zend_Form_Element_Hidden('providerElements');
     $element->setLabel('Unicorn Specific Configuration');
     $element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElements(array($element));
     $this->addElement('text', 'api_host_url', array('label' => 'API host URL:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'username', array('label' => 'Username:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'password', array('label' => 'Password:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'domain_name', array('label' => 'Domain name:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'domain_guid', array('label' => 'Domain GUID:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'channel_guid', array('label' => 'Channel GUID:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'ad_free_application_guid', array('label' => 'Ad free application GUID:', 'filters' => array('StringTrim')));
     $this->addElement('select', 'remote_asset_params_id', array('label' => 'Remote asset params ID:', 'registerInArrayValidator' => false));
     $storageProfiles = array();
     try {
         $client = Infra_ClientHelper::getClient();
         Infra_ClientHelper::impersonate($this->partnerId);
         $storageProfileList = $client->storageProfile->listAction();
         Infra_ClientHelper::unimpersonate();
         foreach ($storageProfileList->objects as $storageProfile) {
             /* @var $storageProfile Kaltura_Client_Type_StorageProfile */
             $storageProfiles[$storageProfile->id] = $storageProfile->name;
         }
     } catch (Kaltura_Client_Exception $e) {
     }
     $this->addElement('select', 'storage_profile_id', array('label' => 'Storage profile ID:', 'multiOptions' => $storageProfiles));
 }
开发者ID:DBezemer,项目名称:server,代码行数:29,代码来源:UnicornProfileConfiguration.php

示例3: _mensagem

 protected function _mensagem()
 {
     $e = new Zend_Form_Element_Hidden('mensagem');
     $e->setLabel(_('Message') . ":")->setRequired(true)->addFilter('StringTrim');
     $e->setDecorators(array('ViewHelper', 'Description', 'Errors', array('HtmlTag', ''), array('Label', '')));
     return $e;
 }
开发者ID:jovanepires,项目名称:sige,代码行数:7,代码来源:MensagemEmail.php

示例4: addProviderElements

 protected function addProviderElements()
 {
     $this->setDescription('');
     $this->loadDefaultDecorators();
     $this->addDecorator('Description', array('placement' => 'prepend'));
     $element = new Zend_Form_Element_Hidden('providerElements');
     $element->setLabel('MetroPcs Specific Configuration');
     $element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElements(array($element));
     $this->addElement('text', 'ftp_host', array('label' => 'FTP Host:', 'filters' => array('StringTrim'), 'default' => 'ftp-int.vzw.real.com'));
     $this->addElement('text', 'ftp_login', array('label' => 'FTP Login:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'ftp_pass', array('label' => 'FTP Password:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'ftp_path', array('label' => 'FTP Path:', 'filters' => array('StringTrim')));
     /*
     $this->addElement('text', 'provider_name', array(
     	'label'			=> 'Provider:',
     	'filters'		=> array('StringTrim')
     ));
     */
     $this->addElement('text', 'provider_id', array('label' => 'Provider id:', 'filters' => array('StringTrim')));
     $this->addDisplayGroup(array('ftp_host', 'ftp_login', 'ftp_pass', 'ftp_path', 'provider_name', 'provider_id'), 'general', array('legend' => 'General', 'decorators' => array('FormElements', 'Fieldset')));
     $this->addElement('select', 'entitlements', array('label' => 'Entitlement:', 'filters' => array('StringTrim'), 'multiOptions' => array('METROPCS_VIDEO_BASIC' => 'METROPCS_VIDEO_BASIC', 'PREMIUM' => 'PREMIUM', 'SUBSCRIPTION' => 'SUBSCRIPTION')));
     $this->addElement('text', 'copyright', array('label' => 'Copyright:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'rating', array('label' => 'Rating:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'item_type', array('label' => 'Type:', 'filters' => array('StringTrim')));
     $this->addDisplayGroup(array('entitlements', 'copyright', 'rating', 'item_type'), 'default_config_group', array('legend' => 'Default Metadata', 'decorators' => array('FormElements', 'Fieldset')));
 }
开发者ID:DBezemer,项目名称:server,代码行数:27,代码来源:MetroPcsProfileConfiguration.php

示例5: addProviderElements

 protected function addProviderElements()
 {
     $element = new Zend_Form_Element_Hidden('providerElements');
     $element->setLabel('DoubleClick Specific Configuration');
     $element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElements(array($element));
     $element = new Zend_Form_Element_Text('cue_points_provider');
     $element->setLabel('Cue Points Provider:');
     $this->addElement($element);
     $element = new Zend_Form_Element_Text('items_per_page');
     $element->setLabel('Items Per Page:');
     $this->addElement($element);
     $this->setDefault('items_per_page', 100);
     $this->addDisplayGroup(array('cue_points_provider', 'items_per_page'), 'general_group', array('legend' => 'General', 'decorators' => array('FormElements', 'Fieldset')));
     $element = new Zend_Form_Element_Text('channel_title');
     $element->setLabel('Channel title:');
     $this->addElement($element);
     $element = new Zend_Form_Element_Text('channel_description');
     $element->setLabel('Channel description:');
     $this->addElement($element);
     $element = new Zend_Form_Element_Text('channel_link');
     $element->setLabel('Channel link:');
     $this->addElement($element);
     $element = new Zend_Form_Element_Checkbox('ignore_scheduling_in_feed');
     $element->setLabel('Ignore Scheduling In Feed, As Default Feed Behavior');
     $this->addElement($element);
     $this->addDisplayGroup(array('channel_title', 'channel_description', 'channel_link', 'ignore_scheduling_in_feed'), 'channel', array('legend' => 'Feed Configuration', 'decorators' => array('FormElements', 'Fieldset')));
     $element = new Zend_Form_Element_Hidden('feed_url');
     $element->clearDecorators();
     $element->addDecorator('Callback', array('callback' => array($this, 'renderFeedUrl')));
     $this->addElement($element);
     $this->addDisplayGroup(array('feed_url'), 'feed_url_group', array('legend' => '', 'decorators' => array('FormElements', 'Fieldset')));
 }
开发者ID:DBezemer,项目名称:server,代码行数:33,代码来源:DoubleClickProfileConfiguration.php

示例6: addProviderElements

 protected function addProviderElements()
 {
     $element = new Zend_Form_Element_Hidden('providerElements');
     $element->setLabel('TV.com Provider Configuration');
     $element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElement($element);
     $element = new Zend_Form_Element_Text('feed_title');
     $element->setLabel('Feed title:');
     $element->addValidator(new Zend_Validate_StringLength(0, 128));
     $this->addElement($element);
     $element = new Zend_Form_Element_Text('feed_link');
     $element->setLabel('Feed link:');
     $element->addValidator(new Zend_Validate_StringLength(0, 255));
     $this->addElement($element);
     $element = new Zend_Form_Element_Text('feed_description');
     $element->setLabel('Feed description:');
     $element->addValidator(new Zend_Validate_StringLength(0, 255));
     $this->addElement($element);
     $this->addElement('Text', 'feed_language', array('label' => 'Feed language:', 'value' => 'en-us'));
     $this->addElement('Text', 'feed_copyright', array('label' => 'Feed copyright:'));
     $this->addElement('Text', 'feed_image_title', array('label' => 'Feed image title:'));
     $this->addElement('Text', 'feed_image_url', array('label' => 'Feed image url:'));
     $this->addElement('Text', 'feed_image_link', array('label' => 'Feed image link:'));
     $this->addElement('Text', 'feed_image_width', array('label' => 'Feed image width:'));
     $this->addElement('Text', 'feed_image_height', array('label' => 'Feed image height:'));
     $element = new Zend_Form_Element_Hidden('feed_url');
     $element->clearDecorators();
     $element->addDecorator('Callback', array('callback' => array($this, 'renderFeedUrl')));
     $this->addElement($element);
     $this->addDisplayGroup(array('feed_title', 'feed_link', 'feed_description', 'feed_language', 'feed_copyright'), 'feed', array('legend' => 'Feed Configuration', 'decorators' => array('FormElements', 'Fieldset')));
     $this->addDisplayGroup(array('feed_image_title', 'feed_image_url', 'feed_image_link', 'feed_image_width', 'feed_image_height'), 'feed_image', array('legend' => 'Feed Image Configuration', 'decorators' => array('FormElements', 'Fieldset')));
     $this->addDisplayGroup(array('feed_url'), 'feed_url_group', array('legend' => '', 'decorators' => array('FormElements', 'Fieldset')));
 }
开发者ID:DBezemer,项目名称:server,代码行数:33,代码来源:TVComProfileConfiguration.php

示例7: init

 public function init()
 {
     $this->setAttrib('id', 'frmDrmProfileConfigure');
     $this->setMethod('post');
     $titleElement = new Zend_Form_Element_Hidden('generalTitle');
     $titleElement->setLabel('General');
     $titleElement->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElement($titleElement);
     $this->addElement('text', 'id', array('label' => 'ID:', 'filters' => array('StringTrim'), 'readonly' => true, 'disabled' => 'disabled'));
     $this->addElement('text', 'partnerId', array('label' => 'Related Publisher ID:', 'required' => true, 'filters' => array('StringTrim'), 'placement' => 'prepend', 'readonly' => true));
     $this->addElement('text', 'name', array('label' => 'Drm Profile Name:', 'required' => true, 'filters' => array('StringTrim'), 'placement' => 'prepend'));
     $this->addElement('text', 'description', array('label' => 'Description:', 'required' => false, 'filters' => array('StringTrim')));
     $providerForView = new Kaltura_Form_Element_EnumSelect('typeForView', array('enum' => 'Kaltura_Client_Drm_Enum_DrmProviderType'));
     $providerForView->setLabel('Provider:');
     $providerForView->setAttrib('readonly', true);
     $providerForView->setAttrib('disabled', 'disabled');
     $providerForView->setValue($this->drmProfileProvider);
     $this->addElement($providerForView);
     $this->addElement('hidden', 'provider', array('filters' => array('StringTrim'), 'decorators' => array('ViewHelper'), 'value' => $this->drmProfileProvider));
     $this->addElement('hidden', 'crossLine1', array('decorators' => array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'hr', 'class' => 'crossLine')))));
     $titleElement = new Zend_Form_Element_Hidden('detailsTitle');
     $titleElement->setLabel('Details');
     $titleElement->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElement($titleElement);
     $this->addElement('text', 'licenseServerUrl', array('label' => 'License Server Url', 'required' => false, 'filters' => array('StringTrim')));
     // --------------------------------
     $extendTypeSubForm = KalturaPluginManager::loadObject('Form_DrmProfileConfigureExtend_SubForm', $this->drmProfileProvider);
     if ($extendTypeSubForm) {
         $extendTypeSubForm->setDecorators(array('FormElements'));
         $this->addSubForm($extendTypeSubForm, self::EXTENSION_SUBFORM_NAME);
     }
     //------------------------------------
 }
开发者ID:DBezemer,项目名称:server,代码行数:33,代码来源:DrmProfileConfigure.php

示例8: addProviderElements

 protected function addProviderElements()
 {
     $element = new Zend_Form_Element_Hidden('providerElements');
     $element->setLabel('Hulu Specific Configuration');
     $element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElements(array($element));
     $this->addElement('select', 'protocol', array('label' => 'Protocol:', 'filters' => array('StringTrim'), 'multiOptions' => array(Kaltura_Client_ContentDistribution_Enum_DistributionProtocol::SFTP => 'SFTP', Kaltura_Client_ContentDistribution_Enum_DistributionProtocol::ASPERA => 'ASPERA'), 'required' => true));
     $this->addElement('text', 'sftp_host', array('label' => 'SFTP Host:', 'filters' => array('StringTrim'), 'default' => 'sftp.hulu.com'));
     $this->addElement('text', 'aspera_host', array('label' => 'Aspera Host:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'port', array('label' => 'Port:', 'filters' => array('StringTrim'), 'value' => '22', 'required' => true));
     $this->addElement('text', 'sftp_login', array('label' => 'SFTP Login:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'sftp_pass', array('label' => 'SFTP Password:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'aspera_login', array('label' => 'Aspera Login:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'aspera_pass', array('label' => 'Aspera Password:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'passphrase', array('label' => 'Key Passphrase:', 'filters' => array('StringTrim')));
     $this->addElement('file', 'aspera_public_key', array('label' => 'Public Key:'));
     $this->addElement('textarea', 'aspera_public_key_readonly', array('label' => 'Public Key:', 'readonly' => true));
     $this->addElement('file', 'aspera_private_key', array('label' => 'Private Key:'));
     $this->addElement('textarea', 'aspera_private_key_readonly', array('label' => 'Private Key:', 'readonly' => true));
     $this->addDisplayGroup(array('protocol', 'sftp_host', 'port', 'sftp_login', 'sftp_pass', 'aspera_host', 'aspera_login', 'aspera_pass', 'passphrase', 'aspera_public_key', 'aspera_public_key_readonly', 'aspera_private_key', 'aspera_private_key_readonly'), 'general', array('legend' => 'General', 'decorators' => array('FormElements', 'Fieldset')));
     $this->addElement('text', 'series_channel', array('label' => 'Series Channel:', 'filters' => array('StringTrim')));
     $this->addElement('select', 'series_primary_category', array('label' => 'Series Primary Category:', 'filters' => array('StringTrim'), 'multiOptions' => array_merge(array('' => ''), $this->getPrimaryCategoryList())));
     $this->addElement('multiCheckbox', 'series_additional_categories', array('label' => 'Series Additional Categories:', 'filters' => array('StringTrim'), 'multiOptions' => $this->getPrimaryCategoryList()));
     $this->addElement('text', 'season_number', array('label' => 'Season Number:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'season_synopsis', array('label' => 'Season Synopsis:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'season_tune_in_information', array('label' => 'Season Tune In Information:', 'filters' => array('StringTrim')));
     $this->addElement('select', 'video_media_type', array('label' => 'Video Media Type:', 'filters' => array('StringTrim'), 'multiOptions' => array_merge(array('' => ''), $this->getVideoMediaTypeList())));
     $this->addDisplayGroup(array('series_channel', 'series_primary_category', 'series_additional_categories', 'season_number', 'season_synopsis', 'season_tune_in_information', 'video_media_type'), 'default_config_group', array('legend' => 'Default Metadata', 'decorators' => array('FormElements', 'Fieldset')));
     $this->addElement('checkbox', 'disable_episode_number_custom_validation', array('label' => 'Disable Episode Number Custom Validation:'));
     $this->addDisplayGroup(array('disable_episode_number_custom_validation'), 'custom_config_group', array('legend' => '', 'decorators' => array('FormElements', 'Fieldset')));
 }
开发者ID:DBezemer,项目名称:server,代码行数:31,代码来源:HuluProfileConfiguration.php

示例9: addProviderElements

 protected function addProviderElements()
 {
     $this->setDescription(null);
     $element = new Zend_Form_Element_Hidden('providerElements');
     $element->setLabel('Tvinci Specific Configuration');
     $element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElements(array($element));
     $this->addElement('hidden', self::FORM_PLACEHOLDER_ELEMENT_ID);
 }
开发者ID:AdiTal,项目名称:server,代码行数:9,代码来源:TvinciProfileConfiguration.php

示例10: addProviderElements

 protected function addProviderElements()
 {
     $element = new Zend_Form_Element_Hidden('providerElements');
     $element->setLabel('Example Specific Configuration');
     $element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElements(array($element));
     $this->addElement('text', 'username', array('label' => 'Username:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'password', array('label' => 'Password:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'account_id', array('label' => 'Account:', 'filters' => array('StringTrim')));
 }
开发者ID:DBezemer,项目名称:server,代码行数:10,代码来源:ExampleProfileConfiguration.php

示例11: addProviderElements

 protected function addProviderElements()
 {
     $element = new Zend_Form_Element_Hidden('providerElements');
     $element->setLabel('Syndication Provider Configuration');
     $element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElements(array($element));
     $this->addElement('text', 'feed_id', array('label' => 'Feed ID', 'readonly' => true, 'decorators' => array('ViewHelper', array('Label', array('placement' => 'prepend')), array('HtmlTag', array('tag' => 'dt')))));
     $this->addElement('hidden', 'xsl', array('class' => 'xsl-data file-data'));
     $this->addElement('file', 'xsl-file', array('label' => 'MRSS Transformer (XSL)', 'decorators' => array('File', array('Label', array('placement' => 'prepend', 'class' => 'xsl-file-label')), array('HtmlTag', array('tag' => 'dt')))));
 }
开发者ID:DBezemer,项目名称:server,代码行数:10,代码来源:SyndicationProviderProfileConfiguration.php

示例12: init

    public function init()
    {
        $this->setMethod('post');
        $this->setAttrib('enctype', 'multipart/form-data');

        $photo = new Zend_Form_Element_File('photo');
        $photo->setLabel('photo.upload');
        $photo->setDestination($this->getAttrib('tmp'));

        $photo->addValidator('Count', false, 1);
        $photo->addValidator('Size', false, $this->getAttrib('filesize'));
        $photo->addValidator(
            'Extension', false, $this->getAttrib('extensions')
        );

        $photo->setRequired(true);
        $photo->removeDecorator('Errors');

        $this->addElement($photo, 'photo');

        $fbId = new Zend_Form_Element_Hidden('fbid');
        $fbId->addValidator(
            'Db_NoRecordExists', false,
            array(
                'table' => 'zdjecia',
                'field' => 'fbuserid'
            )
        );
        $fbId->setLabel('fbid');

        $fbId->setRequired(true);
        $fbId->removeDecorator('Errors');
        $fbId->removeDecorator('Label');

        $this->addElement($fbId);

        $save = new Zend_Form_Element_Submit('Save');
        $save->setLabel('Zgłoś Zdjęcie');
        $save->setAttrib('class', 'ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only');

        $this->addElement($save);

        $this->addDecorator(
                new Zend_Form_Decorator_FormErrors(
                    array(
                        'ignoreSubForms'=>true,
                        'markupListStart' => '<ul class="ui-state-error ui-corner-all">',
                    )
                )
            )
            ->addDecorator('FormElements')
            ->addDecorator('HtmlTag')
            ->addDecorator('Form');
    }
开发者ID:robsohn,项目名称:portret-jesienny,代码行数:54,代码来源:Zdjecie.php

示例13: addProviderElements

 protected function addProviderElements()
 {
     $this->setDescription(null);
     $element = new Zend_Form_Element_Hidden('providerElements');
     $element->setLabel('Dailymotion Specific Configuration');
     $element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElements(array($element));
     $this->addElement('text', 'user', array('label' => 'User:', 'filters' => array('StringTrim')));
     $this->addElement('text', 'password', array('label' => 'Password:', 'filters' => array('StringTrim')));
     $this->addElement('select', 'geo_blocking_mapping', array('label' => 'Geo Blocking Mapping:', 'filters' => array('StringTrim'), 'multiOptions' => array(Kaltura_Client_DailymotionDistribution_Enum_DailymotionGeoBlockingMapping::DISABLED => 'Disabled', Kaltura_Client_DailymotionDistribution_Enum_DailymotionGeoBlockingMapping::ACCESS_CONTROL => 'Access Control', Kaltura_Client_DailymotionDistribution_Enum_DailymotionGeoBlockingMapping::METADATA => 'Custom Data')));
 }
开发者ID:DBezemer,项目名称:server,代码行数:11,代码来源:DailymotionProfileConfiguration.php

示例14: addProviderElements

 protected function addProviderElements()
 {
     $this->setDescription(null);
     $element = new Zend_Form_Element_Hidden('providerElements');
     $element->setLabel('Facebook Specific Configuration');
     $element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElements(array($element));
     $this->addElement('text', 'api_authorize_url', array('label' => 'Authorize API Access:', 'decorators' => array(array('ViewScript', array('viewScript' => 'facebook-distribution-api-authorize-field.phtml')))));
     // General
     $this->addElement('text', 'page_id', array('label' => 'Facebook Page ID:', 'filters' => array('StringTrim'), 'required' => true));
     $this->addDisplayGroup(array('page_id'), 'general', array('legend' => 'General', 'decorators' => array('FormElements', 'Fieldset')));
 }
开发者ID:dozernz,项目名称:server,代码行数:12,代码来源:FacebookProfileConfiguration.php

示例15: addProviderElements

 protected function addProviderElements()
 {
     $this->setDescription(null);
     $element = new Zend_Form_Element_Hidden('providerElements');
     $element->setLabel('YouTube Specific Configuration');
     $element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag', array('tag' => 'b'))));
     $this->addElements(array($element));
     $this->addElement('select', 'feed_spec_version', array('label' => 'Feed Specification Version:', 'multioptions' => array('1' => 'Version 1 (Legacy Feed)', '2' => 'Version 2 (YouTube Rights Feeds)'), 'description' => 'Save to see specific spec configurations'));
     $this->addElement('text', 'api_authorize_url', array('label' => 'Authorize API Access:', 'decorators' => array(array('ViewScript', array('viewScript' => 'youtube-distribution-api-authorize-field.phtml')))));
     $this->addDisplayGroup(array('feed_spec_version'), 'feed_spec_version_group', array('legend' => '', 'decorators' => array('FormElements', 'Fieldset')));
     $this->addElement('hidden', self::FORM_PLACEHOLDER_ELEMENT_ID);
 }
开发者ID:DBezemer,项目名称:server,代码行数:12,代码来源:YouTubeProfileConfiguration.php


注:本文中的Zend_Form_Element_Hidden::setLabel方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。