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'); }
public function __construct() { $this->mod = 'test'; $this->debug = true; $this->logger = 'test'; parent::__construct(); }
public function __construct($argv) { $this->mode = 'com'; $this->app_env = Pi::get('app_env', ''); $this->com_env = Pi::get('com_env', ''); parent::__construct(); }
public function __construct($config, $router) { if (!IS_WORKSPACE && !isset($_SERVER["HTTP_X_REQUESTED_WITH"])) { exit; } parent::__construct($config, $router); }
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'); }
/** * 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."); }
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'); }
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'); }
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(); } }
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; }
/** * 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(); }
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(); }
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'); } }
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); }
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]; } }
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(); }
/** * 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); }
public function __construct(Application $console) { parent::__construct(); $this->console = $console; }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->sapi['cli']['despatch'] = array('class' => 'MQDespatch'); }
/** * 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'); }
public function __construct() { parent::__construct(); $this->load->model('order_model', 'order'); }
/** * 构造函数 * * @access public * @param mixed $config */ public function __construct($config = null) { parent::__construct($config); }
public function __construct($params) { parent::__construct($params); $this->init(); }
/** * 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'); }
public function __construct() { parent::__construct(); $this->load->model('user_model', 'user'); $this->load->helper('common'); }
/** * 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.'); }
public function __construct() { parent::__construct(); $this->load->model('testimonial_model', 'testimonial'); }
public function __construct() { parent::__construct(); $this->router = new \Router(); }
public function __construct($appPath, $debug = false) { parent::__construct('console', $appPath, $debug); }