Example #1
1
 /**
  * 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;
 }
Example #2
1
 public function __construct($systemName = "", $displayName = "", $hotkey = "", $price = "", $stock = "")
 {
     $this->price = $price;
     $this->stock = $stock;
     parent::__construct($systemName, $displayName, $hotkey);
 }
Example #3
0
 /**
  * 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();
 }
 /**
  * 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();
 }
Example #5
0
 public function __construct()
 {
     global $verbose;
     parent::__construct();
     $this->_add_commands();
     $verbose = $this->option('verbose');
 }
 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;
 }
Example #7
0
 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');
 }
Example #8
0
 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);
 }
Example #9
0
 /**
  * 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;
 }
Example #10
0
 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 = "";
 }
 /**
  * [__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();
 }
Example #12
0
 /**
  * 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);
 }
Example #13
0
 /**
  * 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);
 }
Example #14
0
 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;
 }
Example #15
0
 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();
 }
Example #16
0
 /**
  * Setup the application container as we'll need this for running migrations.
  */
 public function __construct(Container $app)
 {
     parent::__construct();
     $this->app = $app;
     $this->FileDiff = new FileDiff();
     $this->File = File::getFacadeRoot();
     $this->__DIR__ = __DIR__;
     $this->public_path = public_path();
     $this->base_path = base_path();
     $this->DeviseMigrateCommand = new DeviseMigrateCommand($this->app);
     $this->DeviseSeedCommand = new DeviseSeedCommand($this->app);
 }
Example #17
0
 /**
  * Setup the application container as we'll need this for running migrations.
  */
 public function __construct(Container $app)
 {
     parent::__construct();
     $this->app = $app;
     $this->basePath = $this->app->basePath();
     $this->Config = $this->app->make('config');
     $this->DeviseMigrateCommand = new DeviseMigrateCommand($this->app);
     $this->DeviseSeedCommand = new DeviseSeedCommand($this->app);
     $this->DevisePublishAssetsCommand = new DevisePublishAssetsCommand($this->app);
     $this->DevisePublishConfigsCommand = new DevisePublishConfigsCommand($this->app);
     $this->Artisan = \Artisan::getFacadeRoot();
 }
 public function contextCreateWithDataCommand($filename = "", &$torrent_file = NULL, $start = true)
 {
     parent::__construct(Command::CN_CCREATEWITHDATA);
     $this->filename = $filename;
     if ($torrent_file == NULL) {
         $torrent_file = new sBuffer();
     }
     if (!$torrent_file instanceof sBuffer) {
         throw new BTGException("torrent_file parameter should be an sBuffer()!");
     }
     $this->torrent_file = $torrent_file;
     if (!is_bool($start)) {
         $start = true;
     }
     $this->start = $start;
 }
 public function initConnectionCommand($username = "", $hash = "")
 {
     parent::__construct(Command::CN_GINITCONNECTION);
     $this->username = $username;
     if (!$hash) {
         $this->hash = new Hash();
     } else {
         // A string, create a new hash object
         if (is_string($hash)) {
             $this->hash = new Hash();
             $this->hash->generate($hash);
         } else {
             if ($hash instanceof Hash) {
                 $this->hash = $hash;
             } else {
                 throw new BTGException("initConnectionCommand::initConnectionCommand failed. Hash is '{$hash}' of type " . gettype($hash) . ".");
             }
         }
     }
 }
Example #20
0
 /**
  * 初始化
  * @param string $tag 数据库标识 用户区分应用库
  */
 public function __construct($tag = 'db')
 {
     parent::__construct($tag);
     $this->_tablepre = $this->_tablePre();
 }
Example #21
0
 public function listCommand()
 {
     parent::__construct(Command::CN_GLIST);
 }
Example #22
0
 public function setSessionNameCommand($sessionname)
 {
     parent::__construct(Command::CN_SSETNAME);
     $this->name = $sessionname;
 }
Example #23
0
 public function setupResponseCommand($session = 0)
 {
     parent::__construct(Command::CN_GSETUPRSP);
     $this->session = $session;
 }
Example #24
0
 function __construct($user, $other = null)
 {
     parent::__construct($user);
     $this->other = $other;
 }
Example #25
0
 public function __construct($class = Entity::class)
 {
     $params = [];
     parent::__construct($params, $class, self::COMMAND_GENERATE_ID);
 }
 public function detachSessionCommand()
 {
     parent::__construct(Command::CN_SDETACH);
 }
Example #27
-1
 public function __construct($title = '', $daemon = false)
 {
     parent::__construct();
     $title = trim($title);
     if (!empty($title)) {
         $this->title = $title;
     }
     $this->daemon = $daemon;
     $this->pidFile = $this->infoDir . $this->title . ".pid";
     $this->output = $this->infoDir . $this->title . ".log";
     if (false === is_dir($this->infoDir)) {
         if (false === mkdir($this->infoDir, 0777, true)) {
             die("\nfailed to create dir({$this->infoDir})\n");
         }
     }
     if (false === file_exists($this->output)) {
         if (false === touch($this->output)) {
             die("\nfailed to create dir({$this->output})\n");
         }
     }
     $this->initSignal();
 }
Example #28
-1
 public function ackCommand($command_type = Command::CN_UNDEFINED)
 {
     parent::__construct(Command::CN_ACK);
     $this->command_type = $command_type;
 }
Example #29
-1
 public function lastCIDCommand()
 {
     parent::__construct(Command::CN_CLAST);
 }
Example #30
-1
 public function listSessionCommand()
 {
     parent::__construct(Command::CN_SLIST);
 }