當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Am_Form_Setup::addText方法代碼示例

本文整理匯總了PHP中Am_Form_Setup::addText方法的典型用法代碼示例。如果您正苦於以下問題:PHP Am_Form_Setup::addText方法的具體用法?PHP Am_Form_Setup::addText怎麽用?PHP Am_Form_Setup::addText使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Am_Form_Setup的用法示例。


在下文中一共展示了Am_Form_Setup::addText方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

    function _initSetupForm(Am_Form_Setup $form)
    {
        $form->setTitle('Selectel');
        $form->addText('access_key', array('size' => 40))->setLabel('Your account login')->addRule('required');
        $form->addPassword('secret_key', array('size' => 40))->setLabel(array('Password for Cloud Storage', '(separate password then for Control Panel)'))->addRule('required');
        $form->addText('expire', array('size' => 5))->setLabel('Video link life-time, min');
        $form->setDefault('expire', 15);
        if ($this->isConfigured()) {
            try {
                $containers = $this->getDi()->cacheFunction->call(array($this->getConnector(), 'getContainersList'), array(), array(), $this->cacheLifetime);
                $containers = array('' => '== Please select public Container ==') + $containers;
            } catch (Exception $e) {
                $containers = array('' => 'Please create public container');
            }
            $form->addSelect('links_container', '', array('options' => array_combine($containers, $containers)))->setLabel(array('Container for links', 'aMember will create links in the following format: http://yourcloudstorageurl.com/CONTAINERNAME/uniquekey/filename.mp4'))->addRule('required');
        }
        $msg = <<<EOT
    Make sure that you store all your files in private containers.
    In order to provide an access to the files, create one free container, and specify it in plugin configuration.
    aMember will create symlinks to the files and put these symilnks to that public container. Links are one-time and time-limited.
    For example if you name your public container "download", end-user will see these links:
    https://88901.selcdn.ru/download/9365d4a676845f607e46e19038305ba0/filename.mp4

EOT;
        $form->addProlog(<<<CUT
<div class="info"><strong>{$msg}</strong></div>
CUT
);
    }
開發者ID:grlf,項目名稱:eyedock,代碼行數:29,代碼來源:selectel.php

示例2: _initSetupForm

 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('site_id')->setLabel(array('Site ID', 'Identifier of the merchant site'));
     $form->addText('api_key')->setLabel(array('API Key', 'This keyset is available under My Profile in the Allopass merchant account.'));
     $form->addText('api_secret_key')->setLabel(array('API Secret Key', 'This keyset is available under My Profile in the Allopass merchant account.'));
     $form->addAdvCheckbox('testing')->setLabel('Test Mode');
 }
開發者ID:alexanderTsig,項目名稱:arabic,代碼行數:7,代碼來源:allopass.php

示例3: array

 function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('merchant_id')->setLabel('Merchant ID');
     $form->addText('security_key')->setLabel('Private Security Key');
     $form->addSelect('language', '', array('options' => array('ru' => 'Русский', 'en' => 'English')))->setLabel('Interface language');
     $form->addAdvCheckbox('cc_form')->setLabel('Send User to CC form directly');
 }
開發者ID:grlf,項目名稱:eyedock,代碼行數:7,代碼來源:payonlinesystem.php

示例4: _initSetupForm

 protected function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('destination_id', 'size=60')->setLabel('Dwolla Account Number', 'Dwolla account ID receiving the funds. Format : XXX-XXX-XXXX.');
     $form->addText('app_key', 'size=60')->setLabel('Application Key', 'The key used for the Dwolla API');
     $form->addText('app_secret', 'size=60')->setLabel('Application Secret', 'The secret code used for the Dwolla API');
     $form->addAdvCheckbox('testing')->setLabel('Test Mode');
 }
開發者ID:alexanderTsig,項目名稱:arabic,代碼行數:7,代碼來源:dwolla.php

示例5: _initSetupForm

 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('web_id', array('size' => 20, 'maxlength' => 20))->setLabel('2000Charge.com website ID')->addRule('required');
     $form->addText('account')->setLabel('Your client account login id');
     $form->addText('pwd')->setLabel('Your client account login password');
     $form->addSelect('payment_option', '', array('options' => $this->payment_options))->setLabel(array('Payment Option', 'Display Only Specified Payment Options'));
 }
開發者ID:alexanderTsig,項目名稱:arabic,代碼行數:7,代碼來源:charge2000.php

示例6: _initSetupForm

 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('account')->setLabel(array('Your Account Id in Ecsuite', 'your account number on Ecsuite, like 112233'));
     $form->addText('subaccount_id')->setLabel(array('Subaccount number', 'like 0001 or 0002'));
     $form->addText('datalink_user')->setLabel(array('DataLink Username', 'read Ecsuite plugin readme (11) about'));
     $form->addText('datalink_pass')->setLabel(array('DataLink Password', 'read Ecsuite plugin readme (11) about'));
 }
開發者ID:alexanderTsig,項目名稱:arabic,代碼行數:7,代碼來源:ecsuite.php

示例7: _initSetupForm

 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText("account_id")->setLabel(array('Account ID', ''));
     $form->addText("site_id")->setLabel(array('Site ID', ''));
     $form->addText("site_code")->setLabel(array('Site Code', ''));
     $form->addAdvCheckbox('testing')->setLabel('Test Mode');
 }
開發者ID:grlf,項目名稱:eyedock,代碼行數:7,代碼來源:multisafepay.php

示例8: _initSetupForm

 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addInteger('merchant_id', array('size' => 20))->setLabel('SWREG Account#');
     $form->addText('product_id', array('size' => 20))->setLabel('SWREG Product#');
     $form->addText('ip', array('size' => 10))->setLabel('SWREG Postback IP, default value is 64.37.103.135');
     $form->addPassword('pass', array('size' => 10))->setLabel('SWREG API Password');
 }
開發者ID:alexanderTsig,項目名稱:arabic,代碼行數:7,代碼來源:swreg.php

示例9: _initSetupForm

 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText("installation_id", array('size' => 15))->setLabel(array("Your Metacharge installation ID", "refer to Merchant Extranet: Account Management > Installations"))->addRule('required');
     $form->addText("auth_username", array('size' => 15))->setLabel(array("Response HTTP Auth Username", "Metacharge PRN response authorisation username"))->addRule('required');
     $form->addPassword("auth_password", array('size' => 15))->setLabel(array("Response HTTP Auth Password", "Metacharge PRN response authorisation password"))->addRule('required');
     $form->addAdvCheckbox("testing")->setLabel("Test Mode Enabled");
 }
開發者ID:alexanderTsig,項目名稱:arabic,代碼行數:7,代碼來源:metacharge.php

示例10: _initSetupForm

 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('fp_account')->setLabel(array('Your FasaPay Store Account'))->addRule('required');
     $form->addText('fp_store')->setLabel(array('FasaPay Store Name'))->addRule('required');
     $form->addText('security_word', array('size' => 40))->setLabel(array('FasaPay Store Security Word'))->addRule('required');
     $form->addAdvCheckbox('is_sandbox')->setLabel(array('Sandbox Mode Enabled', "use sandbox account data from http://sandbox.fasapay.com/"));
 }
開發者ID:alexanderTsig,項目名稱:arabic,代碼行數:7,代碼來源:fasapay.php

示例11: _initSetupForm

 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('account_id')->setLabel('NetBilling Account ID')->addRule('required');
     $form->addText('site_tag')->setLabel(array('NetBilling Site Tag', "create it at your netbilling account -> Setup -> Site Tools -> Site tags"))->addRule('required');
     $form->addText('crypto_hash')->setLabel(array('MD5 crypto-hash', "create it at your netbilling account -> Fraud Controls -> Fraud Defense -> Step 12"))->addRule('required');
     $form->addAdvCheckbox("debugLog")->setLabel(array("Debug Log Enabled", "write all requests/responses to log"));
 }
開發者ID:grlf,項目名稱:eyedock,代碼行數:7,代碼來源:netbilling-form.php

示例12: _initSetupForm

 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('account', array('size' => 20, 'maxlength' => 16))->setLabel("ClickBank Account Nickname\n" . "your ClickBank username")->addRule('required');
     $form->addPassword('secret', array('size' => 20, 'maxlength' => 16))->setLabel("Secret Key\n" . "defined at clickbank.com -> login -> SETTINGS -> My Site -> Advanced Tools (edit)")->addRule('required');
     $form->addText('clerk_key', array('size' => 50))->setLabel("ClickBank Clerk API Key\n" . "defined at clickbank.com -> login -> SETTINGS -> My Account -> Clerk API Keys (edit)")->addRule('required');
     $form->addText('dev_key', array('size' => 50))->setLabel("Developer API Key\n" . "defined at clickbank.com -> login -> SETTINGS -> My Account -> Developer API Keys (edit)")->addRule('required');
 }
開發者ID:alexanderTsig,項目名稱:arabic,代碼行數:7,代碼來源:clickbank.php

示例13: _initSetupForm

 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText("aid")->setLabel(array('Sub-Account-ID', ''))->addRule('required');
     $form->addText("portalid")->setLabel(array('Portal-ID', ''))->addRule('required');
     $form->addText('secret_key', 'size=40')->setLabel(array('Key', ''))->addRule('required');
     $form->addSelect("testing", array(), array('options' => array('' => 'No', '1' => 'Yes')))->setLabel('Test Mode');
 }
開發者ID:grlf,項目名稱:eyedock,代碼行數:7,代碼來源:payone.php

示例14: _initSetupForm

 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('merchant_id', array('size' => 10))->setLabel('Your Merchant ID');
     $form->addText('access_token', array('size' => 64))->setLabel('Your Merchant access token');
     $form->addText('webhook_token', array('size' => 64))->setLabel('Your Merchant WebHook token');
     $form->addAdvCheckbox("testing")->setLabel("Is it a Sandbox(Testing) Account?");
 }
開發者ID:grlf,項目名稱:eyedock,代碼行數:7,代碼來源:gocardlesspro.php

示例15: _initSetupForm

 public function _initSetupForm(Am_Form_Setup $form)
 {
     $form->addText('pspid', array('size' => 20))->setLabel('Your Affiliation Name in Postfinance');
     $form->addText('sha_in', array('size' => 20))->setLabel('SHA IN pass phrase');
     $form->addText('sha_out', array('size' => 20))->setLabel('SHA OUT pass phrase');
     $form->addAdvCheckbox('testing')->setLabel('Test Mode');
 }
開發者ID:grlf,項目名稱:eyedock,代碼行數:7,代碼來源:postfinance.php


注:本文中的Am_Form_Setup::addText方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。