Example #1
0
 /**
  * クラス名を基にモデル名をメンバに設定します。
  * 
  * @param Ethna_Backend $backend
  */
 function __construct($backend)
 {
     parent::__construct($backend);
     $class_name = explode('_', get_class($this));
     $this->name = substr($class_name[1], 0, -strlen('Manager'));
     // HogeManager -> Hoge
 }
Example #2
0
 /**
  *  Ethna_UnitTestManagerのコンストラクタ
  *
  *  @access public
  *  @param  object  Ethna_Backend   &$backend   Ethna_Backendオブジェクト
  */
 public function __construct($backend)
 {
     parent::__construct($backend);
     $this->ctl = Ethna_Controller::getInstance();
     $this->class_factory = $this->ctl->getClassFactory();
     $this->testcase = array_merge($this->testcase, $this->_getTestCaseList());
 }
Example #3
0
 /**
  *  Ethna_InfoManagerのコンストラクタ
  *
  *  @access public
  *  @param  object  Ethna_Backend   &$backend   Ethna_Backendオブジェクト
  */
 public function __construct($backend)
 {
     $this->form_type_list = array(FORM_TYPE_TEXT => array('name' => _et('TextBox')), FORM_TYPE_PASSWORD => array('name' => _et('Password')), FORM_TYPE_TEXTAREA => array('name' => _et('TextArea')), FORM_TYPE_SELECT => array('name' => _et('SelectBox')), FORM_TYPE_RADIO => array('name' => _et('RadioButton')), FORM_TYPE_CHECKBOX => array('name' => _et('CheckBox')), FORM_TYPE_SUBMIT => array('name' => _et('SubmitButton')), FORM_TYPE_FILE => array('name' => _et('File')));
     $this->var_type_list = array(VAR_TYPE_INT => array('name' => _et('Integer')), VAR_TYPE_FLOAT => array('name' => _et('Float')), VAR_TYPE_STRING => array('name' => _et('String')), VAR_TYPE_DATETIME => array('name' => _et('Datetime')), VAR_TYPE_BOOLEAN => array('name' => _et('Boolean')), VAR_TYPE_FILE => array('name' => _et('File')));
     parent::__construct($backend);
     $this->ctl = Ethna_Controller::getInstance();
     $this->class_factory = $this->ctl->getClassFactory();
     // アクションスクリプト解析結果キャッシュ取得
     $this->cache_class_list_file = sprintf('%s/ethna_info_class_list', $this->ctl->getDirectory('tmp'));
     if (file_exists($this->cache_class_list_file) && filesize($this->cache_class_list_file) > 0) {
         $fp = fopen($this->cache_class_list_file, 'r');
         $s = fread($fp, filesize($this->cache_class_list_file));
         fclose($fp);
         $this->cache_class_list = unserialize($s);
     }
 }
Example #4
0
 public function __construct($backend)
 {
     parent::__construct($backend);
 }
Example #5
0
 public function __construct($backend)
 {
     parent::__construct($backend);
     $this->user = $backend->getManager('user');
 }