constructor __construct [line 158]
void __construct(
string
$host, integer
$port, [string
$login = "anonymous"], [string
$password = ""], [boolean
$keepalive = true])
|
|
Constructor method.
It is used to initialize the class members
Tags:
Parameters:
method abort [line 957]
method addAttr [line 720]
void addAttr(
string
$file, string
$name, string
$t)
|
|
Adds one attribute to a file.
Tags:
Parameters:
method addEntries [line 702]
void addEntries(
array
$entries)
|
|
Adds some entries to amga.
Tags:
Parameters:
method addEntry [line 684]
void addEntry(
string
$file, string
$keys, string
$values)
|
|
Adds one entry to amga.
Tags:
Parameters:
method cd [line 1021]
Changes current directory.
Tags:
Parameters:
method clearAttr [line 746]
void clearAttr(
string
$file, string
$name)
|
|
Resets the value of a given attribute of a file.
Tags:
Parameters:
method commit [line 968]
method connect [line 215]
Function used to connect to the AMGA server.
Tags:
method createDir [line 808]
void createDir(
string
$dir)
|
|
Creates a directory on amga.
Tags:
Parameters:
method dataArrived [line 571]
Function used to check if data has arrived.
Tags:
method disconnect [line 297]
void disconnect(
[string
$saveSession = false])
|
|
Function used to disconnect from the AMGA server.
Tags:
Parameters:
method doSSLHandshake [line 197]
void doSSLHandshake(
[string
$session = ""])
|
|
SSL handshake function.
Tags:
Parameters:
method eot [line 605]
Function used to check if it is End Of Transmission.
Tags:
method execute [line 329]
void execute(
string
$command)
|
|
Function used to send a command to the server and wait for a return condition.
If the client is not connected it will also try to connect first.
Tags:
Parameters:
method executeNoWait [line 405]
string executeNoWait(
$command)
|
|
Function used to execute commands without waiting for the answer.
It doesn't wait for any return condition of the remote command.
Tags:
Parameters:
method fetchData [line 474]
Fetches more data from the server until a full line is in the buffer or an EOT is detected.
Tags:
method fetchRow [line 426]
Reads a row from the buffer, if necessary the buffer is first filled by reading from the server.
Tags:
method find [line 847]
void find(
string
$pattern, string
$query)
|
|
Finds entries in the catalogue matching a query.
Returns all files in the catalogue matching a given filename pattern and SQL-like query.
Tags:
Parameters:
method getattr [line 630]
void getattr(
string
$file, array
$attributes)
|
|
Function used to get some attributes of a file.
Tags:
Parameters:
method getEntry [line 644]
Return name and attributes of an entry.
Tags:
method getGreetings [line 1105]
Function used to retrieve the greetings message.
Tags:
method getNAttrs [line 1115]
Function used to retrieve the number of attributes used.
Tags:
method getProtocolVersion [line 1125]
string getProtocolVersion(
)
|
|
Function used to retrieve the protocol version.
Tags:
method getSelectAttrEntry [line 880]
array getSelectAttrEntry(
)
|
|
Returns array of attributes.
Tags:
method grp_member [line 1044]
Function used to retrieve the groups to which the user belongs.
Tags:
method listAttr [line 785]
array(array(attributes), listAttr(
string
$file)
|
|
Lists the attributes of a file.
For a given file this function returns a list of attributes of a directory and their types. Note that also attributes which are undefined (assigned to NULL) for the entry are listed.
Tags:
Parameters:
method listEntries [line 758]
string listEntries(
string
$pattern)
|
|
List entries according to a specific pattern.
Tags:
Parameters:
method put [line 938]
void put(
string
$file, array
$values)
|
|
Puts another entry into the collection during an upload().
This call sends data to the server after an upload has been prepared with the upload() call
Tags:
Parameters:
method pwd [line 770]
Returns current working directory.
Tags:
method quoteValue [line 591]
string quoteValue(
string
$value)
|
|
Function used to quote a string.
Tags:
Parameters:
method removeAttr [line 733]
void removeAttr(
string
$file, string
$name)
|
|
Removes one attribute from a file.
Tags:
Parameters:
method removeDir [line 820]
void removeDir(
string
$dir)
|
|
Removes a directory from amga.
Tags:
Parameters:
method requireSSL [line 183]
void requireSSL(
string
$key, string
$cert, [
$capath = "certificates"])
|
|
Function used to enable SSL connection.
Tags:
Parameters:
method retrieveResult [line 355]
Retrieves the result of the remote call. The result is the first line sent by the server. If an error occurred, the rest of the data sent by the server is read until EOT is found.
Tags:
method rm [line 832]
Removes a file from amga.
Tags:
Parameters:
method selectAttr [line 862]
void selectAttr(
array
$attributes, string
$query)
|
|
Returns given attributes of entries that match a SQL-like query.
Tags:
Parameters:
method sendCommand [line 317]
void sendCommand(
string
$command)
|
|
Function used to send a command to the AMGA server.
Tags:
Parameters:
method sequenceCreate [line 983]
void sequenceCreate(
string
$name, string
$directory, [string
$increment = 1], [string
$start = 1])
|
|
Creates a sequence.
Tags:
Parameters:
method sequenceNext [line 996]
$string sequenceNext(
string
$name)
|
|
Returns next element in the sequence.
Tags:
Parameters:
method sequenceRemove [line 1009]
void sequenceRemove(
string
$name)
|
|
Removes a sequence.
Tags:
Parameters:
method setAttr [line 664]
void setAttr(
string
$file, string
$keys, string
$values)
|
|
Sets one ore more attributes of a file.
Tags:
Parameters:
method setDebugMode [line 1135]
void setDebugMode(
[
$mode = false])
|
|
Function used to set the debug mode on/off.
Tags:
Parameters:
method splitUpdateClause [line 1058]
void splitUpdateClause(
string
$clause)
|
|
Function used to split the update clause in order to build a valid command for updateAttr.
Tags:
Parameters:
method updateAttr [line 899]
void updateAttr(
string
$pattern, array
$updateExpr, string
$condition)
|
|
Updates attributes of entries depending on a condition.
Tags:
Parameters:
method upload [line 918]
void upload(
string
$collection, array
$attributes)
|
|
Uploads a file to a given collection.
Tags:
Parameters:
method whoami [line 1032]
Function used to retrieve the login of the user.
Tags: