API docs     >     Files     >     File

File->acquireLock

Description

acquireLock ( $token = '' )
Acquires a lock on the current instance of this Object

Parameters

$token
string
Lock token, only needed when re-acquiring a lock (optional)

Returns

bool
TRUE on success or FALSE in case of an error