Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     $this->sapi['cli']['import'] = array('file' => 'import.php', 'class' => 'WeaverImport', 'description' => 'Import story data from a file');
     $this->sapi['cli']['sync'] = array('file' => 'sync.php', 'class' => 'WeaverSync', 'description' => 'Synchronise dirty objects');
     $this->sapi['cli']['delete'] = array('file' => 'delete.php', 'class' => 'WeaverDelete', 'description' => 'Delete an object');
 }
Esempio n. 2
0
File: test.php Progetto: hihus/newpi
 public function __construct()
 {
     $this->mod = 'test';
     $this->debug = true;
     $this->logger = 'test';
     parent::__construct();
 }
Esempio n. 3
0
File: Com.php Progetto: xtzlyp/newpi
 public function __construct($argv)
 {
     $this->mode = 'com';
     $this->app_env = Pi::get('app_env', '');
     $this->com_env = Pi::get('com_env', '');
     parent::__construct();
 }
Esempio n. 4
0
 public function __construct($config, $router)
 {
     if (!IS_WORKSPACE && !isset($_SERVER["HTTP_X_REQUESTED_WITH"])) {
         exit;
     }
     parent::__construct($config, $router);
 }
Esempio n. 5
0
 public function __construct()
 {
     parent::__construct();
     $this->sapi['cli']['import'] = array('file' => 'import.php', 'class' => 'MediaImport', 'description' => 'Import media data from a file');
     $this->sapi['cli']['convert-tva'] = array('file' => 'convert-tva.php', 'class' => 'MediaConvertTVA', 'description' => 'Convert TV-Anytime classification scheme XML');
     $this->sapi['cli']['sync'] = array('file' => 'sync.php', 'class' => 'MediaSync', 'description' => 'Synchronise dirty objects');
     $this->sapi['cli']['delete'] = array('file' => 'delete.php', 'class' => 'MediaDelete', 'description' => 'Delete an object');
 }
Esempio n. 6
0
 /**
  * Constructor
  * @param array|object $initObj
  */
 function __construct($initObj = null)
 {
     // default option to false
     $this->setOptin();
     parent::__construct($initObj);
     // define errors
     $this->getErrorObj()->setDescription("ENTRY_FIRST_EMPTY", "First name is empty.")->setDescription("ENTRY_LAST_EMPTY", "Last name is empty.")->setDescription("ENTRY_EMAIL_INVALID", "Email is not valid.")->setDescription("ENTRY_DB_ERROR", "Error inserting into entry table.");
 }
Esempio n. 7
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('profile_model', 'profile');
     $this->load->model('heir_model', 'heir');
     $this->load->model('bank_model', 'bank');
     $this->load->model('province_model', 'province');
     $this->load->model('city_model', 'city');
 }
Esempio n. 8
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('invoice_model', 'invoice');
     $this->load->model('payment_model', 'payment');
     $this->load->model('income_model', 'income');
     $this->load->model('order_model', 'order');
     $this->load->helper('common');
 }
Esempio n. 9
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('permission_model', 'permission');
     $this->load->helper('common');
     if (!$this->acl->hasPermission($this->url) && $this->roleName != "super") {
         show_404();
     }
 }
Esempio n. 10
0
 public function __construct()
 {
     parent::__construct();
     $id = $this->id;
     $status = $this->status;
     $cep = $this->cep;
     $endereco = $this->endereco;
     $bairro = $this->bairro;
     $cidade = $this->cidade;
     $estado = $this->estado;
 }
Esempio n. 11
0
 /**
  * Construct a new App_test object
  *
  * @param String $uri an optional relative URI (e.g. "/folder/file")
  */
 public function __construct($uri = NULL)
 {
     $this->is_testing = TRUE;
     parent::__construct($uri);
     if (Config::get('TESTING_ENABLED') !== TRUE) {
         parent::redirect('', array('exit' => TRUE));
     }
     $this->reset_folder();
     $this->test_run = NULL;
     // Translations need validating
     Translate::validate();
 }
Esempio n. 12
0
 public function __construct()
 {
     if (!defined("APP_CTR_ROOT")) {
         die('please define APP_CTR_ROOT const');
     }
     if (!defined("APP_NAME")) {
         die('please define APP_NAME const');
     }
     $this->mode = 'web';
     $this->env = Pi::get('env', 'online');
     parent::__construct();
 }
Esempio n. 13
0
 public function __construct()
 {
     global $ADMIN_ROUTES;
     parent::__construct();
     $this->sapi['http'] = array_merge($this->sapi['http'], $ADMIN_ROUTES);
     if (!isset($this->routes['__NONE__'])) {
         $this->routes['__NONE__'] = array('class' => 'AdminRedirect');
     }
     if (!isset($this->routes['__DEFAULT__'])) {
         $this->routes['__DEFAULT__'] = array('class' => 'AdminRedirect');
     }
 }
Esempio n. 14
0
 public function __construct($file, $php_self, $request_uri)
 {
     global $config;
     ##
     parent::__construct($file, $php_self, $request_uri);
     ## override default user with sessionUser
     if ($this->hasSessionUser()) {
         $this->user = $this->getSessionUser();
     }
     ##
     $this->theme = $config['default']['theme'];
     ##
     define('__LOGO__', __URL__ . (isset($config['logo']) ? $config['logo'] : '/public/images/logo.png'));
     define('__THEME__', __BASE__ . '/theme/' . $this->theme);
 }
Esempio n. 15
0
 public function __construct($argv = array())
 {
     if (!defined("APP_NAME")) {
         die("app.err please define APP_NAME const \n");
     }
     $this->mode = 'api';
     $this->env = Pi::get('env', 'online');
     $data_type = Conf::get("global.data_type", 'json');
     if (isset($this->data_types[$data_type])) {
         $this->data_type = $data_type;
     }
     parent::__construct();
     //debug
     if ($this->debug && !empty($argv)) {
         $_REQUEST['mod'] = $argv[1];
         $_REQUEST['func'] = $argv[2];
     }
 }
Esempio n. 16
0
 public function __construct($argv)
 {
     if (!defined("APP_NAME")) {
         die('please define APP_NAME const');
     }
     define('TASK_PATH', APP_ROOT . APP_NAME . DOT);
     $this->mode = 'task';
     $this->env = 'online';
     //得到参数
     if (!empty($argv)) {
         array_shift($argv);
         $this->task_name = array_shift($argv);
     }
     if (empty($this->task_name)) {
         die('please input the task name for this process');
     }
     $this->argv = $argv;
     parent::__construct();
 }
Esempio n. 17
0
 /**
  * Create Gdata object
  *
  * @param \Zend\Http\Client $client
  * @param string $applicationId The identity of the app in the form of
  *          Company-AppName-Version
  */
 public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1.0')
 {
     parent::__construct($client, $applicationId);
 }
Esempio n. 18
0
 public function __construct(Application $console)
 {
     parent::__construct();
     $this->console = $console;
 }
Esempio n. 19
0
 public function __construct()
 {
     parent::__construct();
 }
Esempio n. 20
0
File: cli.php Progetto: nexgenta/mq
 public function __construct()
 {
     parent::__construct();
     $this->sapi['cli']['despatch'] = array('class' => 'MQDespatch');
 }
Esempio n. 21
0
 /**
  * Create a new Awk Application callwith the command or application 
  * it belongs to 
  * 
  * @param Command|App $parent the command or application this application call 
  *                            belongs to
  */
 public function __construct($parent)
 {
     parent::__construct($parent, 'xargs');
 }
Esempio n. 22
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('order_model', 'order');
 }
Esempio n. 23
0
 /**
  * 构造函数
  * 
  * @access public
  * @param mixed $config
  */
 public function __construct($config = null)
 {
     parent::__construct($config);
 }
Esempio n. 24
0
 public function __construct($params)
 {
     parent::__construct($params);
     $this->init();
 }
Esempio n. 25
0
 /**
  * Create a new PHP Application call with the command or application it belongs 
  * to 
  * 
  * @param Command|App $parent the command or application this application call 
  * belongs to
  */
 public function __construct($parent)
 {
     parent::__construct($parent, 'php');
 }
Esempio n. 26
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('user_model', 'user');
     $this->load->helper('common');
 }
Esempio n. 27
0
 /**
  * Constructor
  * @param string $initObj
  */
 public function __construct($initObj = null)
 {
     $this->setTs();
     parent::__construct($initObj);
     $this->getErrorObj()->setDescription('VOTE_ENTRY_NOEXIST', 'Entry does not exist.')->setDescription('VOTE_GROUP_NOEXIST', 'Please Select an organization.')->setDescription('VOTE_TS_INVALID', 'Timestamp is invalid.')->setDescription('VOTE_TOOSOON', 'You cannot vote more than once within a 24-hour period. Please come back again and vote tomorrow.')->setDescription('VOTE_DB_ERROR', 'Error inserting into vote table.');
 }
Esempio n. 28
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('testimonial_model', 'testimonial');
 }
Esempio n. 29
0
 public function __construct()
 {
     parent::__construct();
     $this->router = new \Router();
 }
Esempio n. 30
0
 public function __construct($appPath, $debug = false)
 {
     parent::__construct('console', $appPath, $debug);
 }