本文整理汇总了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;
}
示例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;
}
示例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();
}
示例4: __construct
public function __construct()
{
global $verbose;
parent::__construct();
$this->_add_commands();
$verbose = $this->option('verbose');
}
示例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();
}
示例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;
}
示例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');
}
示例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);
}
示例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 = "";
}
示例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;
}
示例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();
}
示例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);
}
示例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;
}
示例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);
}
示例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();
}