Exemplo n.º 1
0
 public function init()
 {
     parent::init();
     $this->addElement('Text', 'cache_dir', array('label' => 'Cache Directory', 'value' => 'temporary/cache'));
     $this->addElement('Checkbox', 'file_locking', array('label' => 'File Locking?', 'value' => '1'));
     $this->addElement('Text', 'file_name_prefix', array('label' => 'File Name Prefix', 'value' => 'zend_cache'));
 }
Exemplo n.º 2
0
 public function init()
 {
     parent::init();
     // Text
     $this->addElement('Text', 'wordLen', array('label' => 'Word Length', 'validators' => array('Int', array('GreaterThan', true, array(4))), 'value' => 6));
     $this->addElement('Text', 'font', array('label' => 'Font File', 'value' => 'application/modules/Core/externals/fonts/arial.ttf'));
     $this->addElement('Text', 'fontSize', array('label' => 'Font Size', 'validators' => array('Int', array('GreaterThan', true, array(10))), 'value' => 30));
     // Image
     $this->addElement('Text', 'width', array('label' => 'Image Width', 'validators' => array('Int', array('GreaterThan', true, array(100))), 'value' => 200));
     $this->addElement('Text', 'height', array('label' => 'Image Height', 'validators' => array('Int', array('GreaterThan', true, array(40))), 'value' => 50));
     $this->addElement('Text', 'imgDir', array('label' => 'Image Directory', 'value' => 'public/temporary'));
     $this->addElement('Text', 'imgUrl', array('label' => 'Image URL', 'value' => 'public/temporary'));
     // Misc
     $this->addElement('Text', 'timeout', array('label' => 'Timeout', 'validators' => array('Int', array('GreaterThan', true, array(30))), 'value' => 300));
 }
Exemplo n.º 3
0
 public function init()
 {
     parent::init();
     $this->addElement('Text', 'key', array('label' => 'API Key', 'allowEmpty' => false, 'required' => true));
     $this->addElement('Text', 'url', array('label' => 'Site URL', 'value' => 'http://' . $_SERVER['HTTP_HOST'] . constant('_ENGINE_R_BASE'), 'allowEmpty' => false, 'required' => true));
 }
Exemplo n.º 4
0
 public function init()
 {
     parent::init();
     $this->addElement('Text', 'host', array('label' => 'Server Host', 'value' => 'localhost'));
     $this->addElement('Text', 'port', array('label' => 'Server Port', 'value' => '11211'));
 }
Exemplo n.º 5
0
 public function init()
 {
     parent::init();
     $this->addElement('Text', 'cache_db_complete_path', array('label' => 'SQLite Database File', 'required' => true, 'allowEmpty' => false, 'value' => ''));
 }
Exemplo n.º 6
0
 public function init()
 {
     parent::init();
     $this->addElement('Text', 'host', array('label' => 'Host', 'value' => '127.0.0.1'));
     $this->addElement('Text', 'port', array('label' => 'Port', 'value' => ''));
 }
Exemplo n.º 7
0
 public function init()
 {
     parent::init();
     $this->addElement('Text', 'pubkey', array('label' => 'Public Key', 'allowEmpty' => false));
     $this->addElement('Text', 'privkey', array('label' => 'Private Key', 'allowEmpty' => false));
 }
Exemplo n.º 8
0
 public function init()
 {
     parent::init();
     $this->addElement('Text', 'user', array('label' => 'Admin Username'));
     $this->addElement('Checkbox', 'password', array('label' => 'Admin Password'));
 }
Exemplo n.º 9
0
 public function init()
 {
     parent::init();
     $this->addElement('Text', 'lifetime', array('label' => 'Default Lifetime', 'validators' => array('Int', array('GreaterThan', true, array(10))), 'value' => 600, 'order' => 9980));
 }