Свойство | Type | Description | |
---|---|---|---|
$arguments | array | Arguments | |
$commands | array | Commands | |
$options | array | Options |
Méthode | Description | |
---|---|---|
__construct ( array $arguments ) | Constructor | |
callCommand ( object &$object, string $command, array $params, DataSiftUser &$user, $pretty = false ) : mixed | Call the command required | |
getArguments ( ) : array | Get the arguments | |
getCallParameters ( array $allowableParams, array $parameters, DataSift_User &$user ) : array | Get the parameters for the call | |
getCommands ( ) : array | Get the list of commands | |
getEndPointObject ( string $endpoint, DataSift_User &$user ) : object | Get the object for target endpoint | |
getOptions ( ) : type | Get the list of options | |
parseInput ( ) : array | Parse the input parameters correctly | |
printHelp ( ) | Print the help | |
setArguments ( array $arguments ) | Set the arguments | |
validateCommands ( array $parsedOptions ) : boolean | Validate the parsed options |
Méthode | Description | |
---|---|---|
getCommandLineOptions ( ) : array | Process the command line options | |
optionMerge ( array $mergeKeys, array $options ) : array | Function to merge any occurances of the same option chosen with long and short to a single array | |
parseAuth ( array $auth ) : array | Convert the auth to the array required | |
sortParams ( array $params ) : array | Sorts the parameters into matched pairs |
protected getCommandLineOptions ( ) : array | ||
Résultat | array |
public getEndPointObject ( string $endpoint, DataSift_User &$user ) : object | ||
$endpoint | string | |
$user | DataSift_User | |
Résultat | object |
public parseInput ( ) : array | ||
Résultat | array |
public setArguments ( array $arguments ) | ||
$arguments | array |
protected sortParams ( array $params ) : array | ||
$params | array | |
Résultat | array |
public validateCommands ( array $parsedOptions ) : boolean | ||
$parsedOptions | array | |
Résultat | boolean |