Horde_Push_Factory_Push
in package
Creates the Horde_Push content object.
Copyright 2011-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Tags
Table of Contents
- create() : array<string|int, mixed>
- Create the Horde_Push content element.
- _createFromData() : Horde_Push
- Generate a Horde_Push element based on the provided data.
- _parseArgument() : Horde_Push
- Parse an argument into a Horde_Push element.
- _parseKolab() : Horde_Push
- Parse the content of a Kolab object into a Horde_Push element.
- _parsePhp() : Horde_Push
- Parse the content of a PHP file into a Horde_Push element.
- _parseYaml() : Horde_Push
- Parse the content of a YAML file into a Horde_Push element.
Methods
create()
Create the Horde_Push content element.
public
create(array<string|int, mixed> $arguments, array<string|int, mixed> $options, array<string|int, mixed> $conf) : array<string|int, mixed>
Parameters
- $arguments : array<string|int, mixed>
-
The command line arguments.
- $options : array<string|int, mixed>
-
Command line options.
- $conf : array<string|int, mixed>
-
The configuration.
Return values
array<string|int, mixed> —The elements to be pushed.
_createFromData()
Generate a Horde_Push element based on the provided data.
private
_createFromData(array<string|int, mixed> $data) : Horde_Push
Parameters
- $data : array<string|int, mixed>
-
The data to be pushed.
Return values
Horde_Push —The element to be pushed.
_parseArgument()
Parse an argument into a Horde_Push element.
private
_parseArgument(string $argument, array<string|int, mixed> $conf) : Horde_Push
Parameters
- $argument : string
-
A single command line argument.
- $conf : array<string|int, mixed>
-
The configuration.
Return values
Horde_Push —The element to be pushed.
_parseKolab()
Parse the content of a Kolab object into a Horde_Push element.
private
_parseKolab(string $argument, array<string|int, mixed> $conf) : Horde_Push
Parameters
- $argument : string
-
A single command line argument (without the scheme argument).
- $conf : array<string|int, mixed>
-
The configuration.
Return values
Horde_Push —The element to be pushed.
_parsePhp()
Parse the content of a PHP file into a Horde_Push element.
private
_parsePhp(string $argument, array<string|int, mixed> $conf) : Horde_Push
Parameters
- $argument : string
-
A single command line argument (without the scheme argument).
- $conf : array<string|int, mixed>
-
The configuration.
Return values
Horde_Push —The element to be pushed.
_parseYaml()
Parse the content of a YAML file into a Horde_Push element.
private
_parseYaml(string $argument, array<string|int, mixed> $conf) : Horde_Push
Parameters
- $argument : string
-
A single command line argument (without the scheme argument).
- $conf : array<string|int, mixed>
-
The configuration.
Return values
Horde_Push —The element to be pushed.