本文整理汇总了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
);
}
示例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');
}
示例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');
}
示例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');
}
示例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'));
}
示例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'));
}
示例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');
}
示例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');
}
示例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");
}
示例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/"));
}
示例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"));
}
示例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');
}
示例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');
}
示例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?");
}
示例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');
}