@param array $args

@return void
359177
public function handleAttributeDataTable($args)
    {
        $productId = $args['row']['entity_id'];
        $attributeCode = $this->findAttributeCodeById($args['row']['attribute_id'], $args['attributeMapper']);
        $storeId = $args['row']['store_id'];

        $this->initStoreProductData($productId, $storeId);

        $this->attributeData[$productId][$storeId][$attributeCode] = $args['row']['value'];
    }
809622
public function withArgs($args = [])
    {
        if (!is_array($args)) {
            $args = func_get_args();
        }

        $this->args = $args;
        return $this;
    }
1367330
protected function setupArguments($args) {
    $this->upload_path = (isset($args['base_dir']) ? $args['base_dir'] : $this->public_path . $this->upload_uri);
    $this->class = (isset($args['class']) ? $args['class'] : NULL);
    $this->alt = isset($args['alt']) ? $args['alt'] : $this->parseAlt();
    $this->title = isset($args['title']) ? $args['title'] : $this->parseTitle();
  }
337923
public function beforeUpdate(array &$args) {
        $data = &$args[1];
        foreach ($this->_fields as $field) {
            if (!empty($data[$field])) {
                $data[$field] = $this->filter($data[$field], $this->getConfig());
            }
        }
    }
1194528
public function run($args)
	{
		if(!isset($args[0]))
			$this->usageError('the configuration file is not specified.');
		if(!is_file($args[0]))
			$this->usageError("the configuration file {$args[0]} does not exist.");

		$config=require($args[0]);
		$translator='Yii::t';
		extract($config);

		if(!isset($sourcePath,$messagePath,$languages))
			$this->usageError('The configuration file must specify "sourcePath", "messagePath" and "languages".');
		if(!is_dir($sourcePath))
			$this->usageError("The source path $sourcePath is not a valid directory.");
		if(!is_dir($messagePath))
			$this->usageError("The message path $messagePath is not a valid directory.");
		if(empty($languages))
			$this->usageError("Languages cannot be empty.");

		if(!isset($overwrite))
			$overwrite = false;

		if(!isset($removeOld))
			$removeOld = false;

		if(!isset($sort))
			$sort = false;

		if(!isset($fileHeader))
			$fileHeader = true;

		$options=array();
		if(isset($fileTypes))
			$options['fileTypes']=$fileTypes;
		if(isset($exclude))
			$options['exclude']=$exclude;
		$files=CFileHelper::findFiles(realpath($sourcePath),$options);

		$messages=array();
		foreach($files as $file)
			$messages=array_merge_recursive($messages,$this->extractMessages($file,$translator));

		foreach($languages as $language)
		{
			$dir=$messagePath.DIRECTORY_SEPARATOR.$language;
			if(!is_dir($dir))
				@mkdir($dir);
			foreach($messages as $category=>$msgs)
			{
				$msgs=array_values(array_unique($msgs));
				$this->generateMessageFile($msgs,$dir.DIRECTORY_SEPARATOR.$category.'.php',$overwrite,$removeOld,$sort,$fileHeader);
			}
		}
	}
3679
public function run(array $args) {
		foreach($this->calls as $call) {
			if($call instanceof \SuperClosure\SerializableClosure)
				$call = $call->getClosure();
			$res = call_user_func_array($call, array_merge([$this], $args));
			$this->executed++;
			if($res !== null)
				return $res;
			if(!$this->continue)
				return;
		}
	}
316916
public static function sortArgs(array &$args) {
        ksort($args);
        foreach ($args as $key => $val) {
            if (is_array($val)) {
                ksort($val);
                $args [ $key ] = $val;
                self::sortArgs($val);
            }
        }
    }
194675
protected function _validateArgs(array $args): bool {
        foreach (self::REQUIRED_FLAGS as $flag) {
            if (!array_key_exists($flag, $args)) {
                Garp_Cli::errorOut("No {$flag} flag provided.");
                return false;
            }
        }
        return true;
    }
223908
public function afterUpdate(&$args) {
        $model = $args[0];
        $data = $args[2];
        $this->afterSave($model, $data);
    }
890027
public function start($args)
    {
        $this->_header = false;
        parent::start($args);
        $this->write("\n1..{$args['total']}\n");
    }
829034
public function run($args)
  {
    $this->args = $args;
    print colors::colorString(parent::ASCILOGO,array_rand(colors::$foreground_colors));
    print parent::USAGE;
    print colors::colorString(parent::VERSION,'green').PHP_EOL.PHP_EOL;
    //print parent::AUTHOR.PHP_EOL;
  }
837942
public function run(...$args): void
    {
        $container = $this->getContainer();
        $instance = $container->get($this->classIdentifier);

        $instance->{$this->callbackMethod}(...$args);
    }
633707
public function run($args)
  {
    $this->args = $args;
    $command = $this->args['commands'][1];
    $path = $this->root.DIRECTORY_SEPARATOR.'cmd'.DIRECTORY_SEPARATOR.$command;
    if(!is_dir($path)){
      print $command.' doesn\'t appear to be a valid command!';
      return;
    }
    $file = $path.DIRECTORY_SEPARATOR.$this->helpFile;
    if(stream_resolve_include_path($file)){
       print file_get_contents($file);
    }
  }
279126
private static function checkArgs(array $args) {
        if ($_FILES) {
            foreach ($_FILES as $key => $f) {
                if (is_array($f['name'])) {
                    foreach ($f['tmp_name'] as $tmp) {
                        $args[ $key ][] = self::getfileSha1('@"' . $tmp . '"');
                    }
                } else {
                    $args[ $key ] = self::getfileSha1('@"' . $f['tmp_name'] . '"');
                }
            }
        }

        return $args;
    }
592182
public function setCallArgument($arg)
    {
        $this->call_argument = $arg;
        $this->args =[
            $this->call_function,
            $this->call_argument
        ];
    }
1228150
protected function register(array $args)
    {
        array_walk($args, function (array $value, string $key) {
            \genesis_register_layout($key, $value);
        });
    }
683529
public function run($args)
    {
        $this->setup($args);

        Index::success('We found everything :) installing now');

        //normalize the schema
        $this->fixSchema();

        //lets get right into it
        if(isset($this->schema['model'])
            && is_array($this->schema['model'])
        ) {
            $this->generateModels();
            $this->generateModelTests();
        }

        if(isset($this->schema['job'])
            && is_array($this->schema['job'])
        ) {
            $this->generateJobs();
            $this->generateJobTests();
        }

        if(isset($this->schema['page'])
            && is_array($this->schema['page'])
        ) {
            $this->generatePages();
            $this->generatePageTests();
            $this->generateTemplates();
        }

        if(isset($this->schema['rest'])
            && is_array($this->schema['rest'])
        ) {
            $this->generateRests();
            $this->generateRestTests();
        }

        Index::success($this->schema['name'].' has been successfully generated.');

        die(0);
    }