当前位置: 首页>>代码示例>>PHP>>正文


PHP Command::__construct方法代码示例

本文整理汇总了PHP中Command::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Command::__construct方法的具体用法?PHP Command::__construct怎么用?PHP Command::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Command的用法示例。


在下文中一共展示了Command::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ackCommand

 public function ackCommand($command_type = Command::CN_UNDEFINED)
 {
     parent::__construct(Command::CN_ACK);
     $this->command_type = $command_type;
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:5,代码来源:ack.php

示例2:

 /**
  * PerformScript command constructor.
  *
  * @ignore
  * @param FileMaker_Implementation $fm FileMaker_Implementation object the 
  *        command was created by.
  * @param string $layout Layout to use for script context.
  * @param string $scriptName Name of the script to run.
  * @param string $scriptParameters Any parameters to pass to the script.
  */
 function __construct($fm, $layout, $scriptName, $scriptParameters = null)
 {
     parent::__construct($fm, $layout);
     $this->_script = $scriptName;
     $this->_scriptParams = $scriptParameters;
 }
开发者ID:tranduchieu,项目名称:filemaker,代码行数:16,代码来源:PerformScript.php

示例3: __construct

 /**
  * Setup the application container as we'll need this for running migrations.
  */
 public function __construct(Container $app)
 {
     parent::__construct();
     $this->app = $app;
     $this->RoutesGenerator = $this->app->make('Devise\\Pages\\RoutesGenerator');
     $this->Config = Config::getFacadeRoot();
 }
开发者ID:devisephp,项目名称:cms,代码行数:10,代码来源:DeviseCacheCommand.php

示例4: __construct

 public function __construct()
 {
     global $verbose;
     parent::__construct();
     $this->_add_commands();
     $verbose = $this->option('verbose');
 }
开发者ID:rustyeddy,项目名称:sandbox,代码行数:7,代码来源:configurator.php

示例5: __construct

 /**
  * Setup the application container as we'll need this for running migrations.
  *
  *
  * TODO: need to put OPTIONs parameters in here
  */
 public function __construct(Container $app)
 {
     parent::__construct();
     $this->app = $app;
     $this->testDir = $this->app->basepath() . '/tests/routes';
     $this->File = File::getFacadeRoot();
 }
开发者ID:devisephp,项目名称:cms,代码行数:13,代码来源:DeviseTestRoutesCommand.php

示例6: __construct

 public function __construct($page = null, $action = null)
 {
     parent::__construct();
     $this->page = $page ? ucfirst($page) : 'Main';
     $this->action = $action ? ucfirst($action) : 'Index';
     $this->command = $this->klassenName = null;
 }
开发者ID:OdysseyDE,项目名称:omer_team_registration,代码行数:7,代码来源:ApplicationController.php

示例7: __construct

 public function __construct($workingDir = '.', $info, $commandsSeq = array())
 {
     parent::__construct($workingDir, $info, $commandsSeq);
     Console::initCore();
     $this->root_dir = Config::get('ROOT_DIR');
     $this->models_dir = Config::get('models_dir');
 }
开发者ID:point,项目名称:cassea,代码行数:7,代码来源:CmdController.php

示例8: __construct

 public function __construct($class = null, $criteria = [], $limit = null, $offset = null, $orderBy = null, $params = [])
 {
     $params["criteria"] = $criteria;
     $params["limit"] = $limit;
     $params["offset"] = $offset;
     $params["orderBy"] = $orderBy;
     parent::__construct($params, $class);
 }
开发者ID:deltaphp,项目名称:operator,代码行数:8,代码来源:FindCommand.php

示例9: opStatusResponseCommand

 public function opStatusResponseCommand($opid = -1, $optype = -1, $opstatus = -1)
 {
     parent::__construct(Command::CN_OPSTATUSRSP);
     $this->opid = $opid;
     $this->optype = $optype;
     $this->opstatus = $opstatus;
     $this->opdatastr = "";
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:8,代码来源:opstat.php

示例10: __construct

 /**
  * Constructor.
  *
  * @param   object  An optional ObjectConfig object with configuration options
  */
 public function __construct(ObjectConfig $config)
 {
     parent::__construct($config);
     if (is_null($config->event_dispatcher)) {
         throw new \InvalidArgumentException('event_dispatcher [EventDispatcherInterface] config option is required');
     }
     $this->_event_dispatcher = $config->event_dispatcher;
 }
开发者ID:janssit,项目名称:nickys.janss.be,代码行数:13,代码来源:event.php

示例11: __construct

 /**
  * [__construct description]
  * @param [type] $app
  */
 public function __construct(Container $app)
 {
     parent::__construct();
     $this->app = $app;
     $this->File = File::getFacadeRoot();
     $this->__DIR__ = __DIR__;
     $this->public_path = public_path();
     $this->base_path = base_path();
 }
开发者ID:devisephp,项目名称:cms,代码行数:13,代码来源:DevisePublishAssetsCommand.php

示例12: __construct

 /**
  * Constructor.
  *
  * @param  ObjectConfig  $config An associative array of configuration settings or a ObjectConfig instance.
  */
 public function __construct(ObjectConfig $config)
 {
     parent::__construct($config);
     //Create the commands array
     $this->_commands = array();
     //Set the toolbar type
     $this->_type = $config->type;
     // Set the controller
     $this->setController($config->controller);
 }
开发者ID:janssit,项目名称:www.rvproductions.be,代码行数:15,代码来源:abstract.php

示例13: errorCommand

 public function errorCommand($which_command = Command::CN_UNDEFINED, $message = "none")
 {
     parent::__construct(Command::CN_ERROR);
     $this->which_command = $which_command;
     if ($message == "none") {
         $this->isMessagePresent = false;
     } else {
         $this->isMessagePresent = true;
     }
     $this->message = $message;
 }
开发者ID:BackupTheBerlios,项目名称:btg-svn,代码行数:11,代码来源:error.php

示例14: __construct

 /**
  * Quit if we're already running, or start by creating a new PID file
  *
  * @param String $dir an optional starting directory to change from
  */
 public function __construct($dir = NULL)
 {
     parent::__construct($dir);
     if ($pid = $this->is_running()) {
         $this->quit();
     }
     $this->write_pid_to_file();
     // Log output to a log file named "YYYYMMDD.daemon[.test].log"
     $type = $this->opts->test ? 'daemon.test' : 'daemon';
     Log::type($type);
 }
开发者ID:hutchike,项目名称:YAWF,代码行数:16,代码来源:Daemon.php

示例15: getcwd

 function __construct()
 {
     global $config;
     /* XXX can't find it */
     $opts = $config->option();
     // Save the root of this util when we need to go back
     $this->mwproot = getcwd();
     $this->sitesroot = $opts['sites-root'];
     // Look for directories with wp-content
     $this->findcmd = 'find ' . $this->sitesroot . ' -type d -name wp-content';
     parent::__construct();
 }
开发者ID:rustyeddy,项目名称:sandbox,代码行数:12,代码来源:wp-sites.php


注:本文中的Command::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。