function __construct($config, $name, $parentId = 0, $talkPower = 0, $joinPower = 0) { parent::__construct($config); $this->name = $name; $this->parentId = $parentId; $this->talkPower = $talkPower; $this->joinPower = $joinPower; }
function __construct($config, $clientId, $channelId) { parent::__construct($config); $this->clientId = $clientId; $this->channelId = $channelId; }
public function getParser() { $parser = parent::getParser(); $parser->description('CakePHP Language String Extraction:')->addOption('app', ['description' => 'Directory where your application is located.'])->addOption('paths', ['description' => 'Comma separated list of paths.'])->addOption('merge', ['description' => 'Merge all domain strings into the default.po file.', 'choices' => ['yes', 'no']])->addOption('output', ['description' => 'Full path to output directory.'])->addOption('files', ['description' => 'Comma separated list of files.'])->addOption('exclude-plugins', ['default' => true, 'description' => 'Ignores all files in plugins if this command is run inside from the same app directory.'])->addOption('plugin', ['description' => 'Extracts tokens only from the plugin specified and puts the result in the plugin\'s Locale directory.'])->addOption('ignore-model-validation', ['description' => 'Ignores validation messages in the $validate property.' . ' If this flag is not set and the command is run from the same app directory,' . ' all messages in model validation rules will be extracted as tokens.'])->addOption('validation-domain', ['description' => 'If set to a value, the localization domain to be used for model validation messages.'])->addOption('exclude', ['description' => 'Comma separated list of directories to exclude.' . ' Any path containing a path segment with the provided values will be skipped. E.g. test,vendors'])->addOption('overwrite', ['description' => 'Always overwrite existing .pot files.'])->addOption('extract-core', ['description' => 'Extract messages from the CakePHP core libs.', 'choices' => ['yes', 'no']])->addOption('no-location', ['description' => 'Do not write file locations for each extracted message.']); return $parser; }
/** * @param $workingDir * @param $target */ public function __construct($name, $workingDir, $target) { $this->target = $target; parent::__construct($name, $workingDir); }
public function getParser() { $parser = parent::getParser(); $parser->addArgument('plugin', ['description' => 'Name of the plugin to load.']); return $parser; }
public function setOptions(array $options = array()) { if (isset($options['url'])) { $this->setUrl($options['url']); unset($options['url']); } if (isset($options['query'])) { $this->setQuery($options['query']); unset($options['query']); } return parent::setOptions($options); }
function __construct($config, $clientId, $enable) { parent::__construct($config); $this->clientId = $clientId; $this->enable = $enable; }