Свойство | Тип | Описание | |
---|---|---|---|
$arguments | array | Arguments | |
$commands | array | Commands | |
$options | array | Options |
Метод | Описание | |
---|---|---|
__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 |
Метод | Описание | |
---|---|---|
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 | ||
Результат | array |
public getCommands ( ) : array | ||
Результат | array |
public getEndPointObject ( string $endpoint, DataSift_User &$user ) : object | ||
$endpoint | string | |
$user | DataSift_User | |
Результат | object |
public parseInput ( ) : array | ||
Результат | array |
public setArguments ( array $arguments ) | ||
$arguments | array |
protected sortParams ( array $params ) : array | ||
$params | array | |
Результат | array |
public validateCommands ( array $parsedOptions ) : boolean | ||
$parsedOptions | array | |
Результат | boolean |