public function init() { parent::init(); $this->addElement('text', 'storageBaseDir', array('label' => 'Storage Base Directory:', 'filters' => array('StringTrim'))); $this->addElementToDisplayGroup('storage_info', 'storageBaseDir'); $this->addElement('select', 'pathManagerClass', array('label' => 'Path Manager:', 'filters' => array('StringTrim'), 'multiOptions' => array('kPathManager' => 'Kaltura Path', 'kExternalPathManager' => 'External Path', 'kXslPathManager' => 'XSL Path'))); $this->getElement('pathManagerClass')->setRegisterInArrayValidator(false); $this->addElementToDisplayGroup('storage_info', 'pathManagerClass'); $this->addElement('text', 'storageUsername', array('label' => 'Storage Username*:', 'required' => true, 'filters' => array('StringTrim'))); $this->addElementToDisplayGroup('storage_info', 'storageUsername'); $this->addElement('text', 'storagePassword', array('label' => 'Storage Password:'******'filters' => array('StringTrim'))); $this->addElementToDisplayGroup('storage_info', 'storagePassword'); $this->addElement('text', 's3Region', array('label' => 'S3 Region:', 'filters' => array('StringTrim'))); $this->addElementToDisplayGroup('storage_info', 's3Region'); $this->addElement('checkbox', 'storageFtpPassiveMode', array('label' => 'Storage FTP Passive Mode:', 'filters' => array('StringTrim'))); $this->addElementToDisplayGroup('storage_info', 'storageFtpPassiveMode'); // Support for key pair $this->addElement('file', 'sshPublicKey', array('label' => 'SSH Public Key:')); $this->addElementToDisplayGroup('storage_info', 'sshPublicKey'); $this->addElement('textarea', 'publicKey', array('label' => 'SSH Public Key Data:', 'rows' => '2', 'cols' => '50', 'readonly' => '1')); $this->addElementToDisplayGroup('storage_info', 'publicKey'); $this->addElement('file', 'sshPrivateKey', array('label' => 'SSH Private Key:')); $this->addElementToDisplayGroup('storage_info', 'sshPrivateKey'); $this->addElement('textarea', 'privateKey', array('label' => 'SSH Private Key Data:', 'rows' => '2', 'cols' => '50', 'readonly' => '1')); $this->addElementToDisplayGroup('storage_info', 'privateKey'); $this->addElement('text', 'passPhrase', array('label' => 'SSH Pass Phrase:', 'filters' => array('StringTrim'))); $this->addElementToDisplayGroup('storage_info', 'passPhrase'); // -- End of support for key pair $this->addElement('select', 'filesPermissionInS3', array('label' => 'Files Permission In S3:', 'filters' => array('StringTrim'), 'multiOptions' => array(Kaltura_Client_Enum_AmazonS3StorageProfileFilesPermissionLevel::ACL_PRIVATE => 'Private', Kaltura_Client_Enum_AmazonS3StorageProfileFilesPermissionLevel::ACL_PUBLIC_READ => 'Public Read'))); $this->addElementToDisplayGroup('playback_info', 'filesPermissionInS3'); $this->addElement('textarea', 'pathManagerParams', array('label' => 'Path Manager Params (JSON):', 'cols' => 48, 'rows' => 2, 'filters' => array('StringTrim'))); $this->addElementToDisplayGroup('advanced', 'pathManagerParams'); }
public function init() { parent::init(); $this->removeElement('storageUrl'); $this->addElement('text', 'storageBaseDir', array('label' => 'Storage Base Directory:', 'filters' => array('StringTrim'))); $this->addElementToDisplayGroup('storage_info', 'storageBaseDir'); $this->addElement('select', 'pathManagerClass', array('label' => 'Path Manager:', 'filters' => array('StringTrim'), 'multiOptions' => array('kPathManager' => 'Kaltura Path', 'kExternalPathManager' => 'External Path', 'kXslPathManager' => 'XSL Path'))); $this->getElement('pathManagerClass')->setRegisterInArrayValidator(false); $this->addElementToDisplayGroup('storage_info', 'pathManagerClass'); $this->addElement('checkbox', 'createFileLink', array('label' => 'Create as Link:', 'filters' => array('StringTrim'))); $this->addElementToDisplayGroup('storage_info', 'createFileLink'); $this->addElement('textarea', 'pathManagerParams', array('label' => 'Path Manager Params (JSON):', 'cols' => 48, 'rows' => 2, 'filters' => array('StringTrim'))); $this->addElementToDisplayGroup('advanced', 'pathManagerParams'); }
public function init() { parent::init(); $this->addElement('text', 'serviceToken', array('label' => 'Kontiki Service Token', 'filters' => array('StringTrim'))); $this->addElementToDisplayGroup('storage_info', 'serviceToken'); }