![]() |
Joomla CMS
3.9.25 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.9.25 et du framework Joomla Platform intégré
|
Graphe d'héritage de AKAbstractObject:Fonctions membres publiques | |
| __construct () | |
| getError ($i=null) | |
| getErrors () | |
| resetErrors () | |
| getWarning ($i=null) | |
| getWarnings () | |
| resetWarnings () | |
| propagateToObject (&$object) | |
| propagateFromObject (&$object) | |
| setError ($error) | |
| setWarning ($warning) | |
Fonctions membres protégées | |
| setErrorsQueueSize ($newSize=0) | |
| setWarningsQueueSize ($newSize=0) | |
Attributs protégés | |
| $_errors_queue_size = 0 | |
| $_warnings_queue_size = 0 | |
Fonctions membres privées | |
| getItemFromArray ($array, $i=null) | |
Attributs privés | |
| $_errors = array() | |
| $_warnings = array() | |
The base class of Akeeba Engine objects. Allows for error and warnings logging and propagation. Largely based on the Joomla! 1.5 JObject class.
| __construct | ( | ) |
Public constructor, makes sure we are instantiated only by the factory class
| getError | ( | $i = null | ) |
Get the most recent error message
| integer | $i | Optional error index |
Références $i, et getItemFromArray().
Référencé par AKAbstractPart\_makeReturnTable(), AKAbstractUnarchiver\_prepare(), AKAbstractUnarchiver\_run(), AKAbstractPart\getState(), AKPostprocFTP\processFilename(), AKPostprocSFTP\processFilename(), et AKPostprocHybrid\processFilename().
| getErrors | ( | ) |
|
private |
Returns the last item of a LIFO string message queue, or a specific item if so specified.
| array | $array | An array of strings, holding messages |
| int | $i | Optional message index |
Références $i, $item, et null.
Référencé par getError(), et getWarning().
| getWarning | ( | $i = null | ) |
Get the most recent warning message
| integer | $i | Optional warning index |
Références $i, et getItemFromArray().
| getWarnings | ( | ) |
Return all warnings, if any
Références $_warnings.
Référencé par AKAbstractPart\_makeReturnTable().
| propagateFromObject | ( | & | $object | ) |
Propagates errors and warnings from a foreign object. Each propagated list is then cleared on the foreign object, as long as it implements resetErrors() and/or resetWarnings() methods.
| object | $object | The object to propagate errors and warnings from |
Références setError(), et setWarning().
Référencé par AKAbstractUnarchiver\_run().
| propagateToObject | ( | & | $object | ) |
Propagates errors and warnings to a foreign object. The foreign object SHOULD implement the setError() and/or setWarning() methods but DOESN'T HAVE TO be of AKAbstractObject type. For example, this can even be used to propagate to a JObject instance in Joomla!. Propagated items will be removed from ourselves.
| object | $object | The object to propagate errors and warnings to. |
| resetErrors | ( | ) |
Resets all error messages
| resetWarnings | ( | ) |
Resets all warning messages
| setError | ( | $error | ) |
Add an error message
| string | $error | Error message |
Référencé par AKPostprocFTP\__construct(), AKPostprocSFTP\__construct(), AKPostprocHybrid\__construct(), AKPostprocFTP\connect(), AKPostprocSFTP\connect(), AKPostprocHybrid\connect(), AKPostprocDirect\createDirRecursive(), AKPostprocFTP\createDirRecursive(), AKPostprocSFTP\createDirRecursive(), AKPostprocHybrid\createDirRecursive(), AKAbstractUnarchiver\nextFile(), AKPostprocFTP\process(), AKPostprocSFTP\process(), AKPostprocHybrid\process(), propagateFromObject(), AKUnarchiverJPA\readArchiveHeader(), AKUnarchiverZIP\readArchiveHeader(), AKUnarchiverJPS\readArchiveHeader(), AKUnarchiverZIP\readFileHeader(), et AKAbstractPart\setState().
|
protected |
Sets the size of the error queue (acts like a LIFO buffer)
| int | $newSize | The new queue size. Set to 0 for infinite length. |
| setWarning | ( | $warning | ) |
Add an error message
| string | $error | Error message |
Référencé par AKUtilsLister\getFiles(), AKUtilsLister\getFolders(), et propagateFromObject().
|
protected |
Sets the size of the warnings queue (acts like a LIFO buffer)
| int | $newSize | The new queue size. Set to 0 for infinite length. |
|
private |
Référencé par getErrors().
|
protected |
|
private |
Référencé par getWarnings().
|
protected |