Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
tick () | |
getState () | |
getStatusArray () | |
setup ($parametersArray) | |
getDomain () | |
getStep () | |
getSubstep () | |
attach (AKAbstractPartObserver $obs) | |
detach (AKAbstractPartObserver $obs) | |
Fonctions membres publiques hérités de AKAbstractObject | |
getError ($i=null) | |
getErrors () | |
resetErrors () | |
getWarning ($i=null) | |
getWarnings () | |
resetWarnings () | |
propagateToObject (&$object) | |
propagateFromObject (&$object) | |
setError ($error) | |
setWarning ($warning) | |
Fonctions membres protégées | |
_prepare () | |
_run () | |
_finalize () | |
_makeReturnTable () | |
setState ($state='init', $errorMessage='Invalid setState argument') | |
setBreakFlag () | |
setDomain ($new_domain) | |
setStep ($new_step) | |
setSubstep ($new_substep) | |
notify ($message) | |
Fonctions membres protégées hérités de AKAbstractObject | |
setErrorsQueueSize ($newSize=0) | |
setWarningsQueueSize ($newSize=0) | |
Attributs protégés | |
$isPrepared = false | |
$isRunning = false | |
$isFinished = false | |
$hasRan = false | |
$active_domain = "" | |
$active_step = "" | |
$active_substep = "" | |
$_parametersArray = array() | |
$databaseRoot = array() | |
$observers = array() | |
Attributs protégés hérités de AKAbstractObject | |
$_errors_queue_size = 0 | |
$_warnings_queue_size = 0 | |
Attributs privés | |
$warnings_pointer = -1 | |
The superclass of all Akeeba Kickstart parts. The "parts" are intelligent stateful classes which perform a single procedure and have preparation, running and finalization phases. The transition between phases is handled automatically by this superclass' tick() final public method, which should be the ONLY public API exposed to the rest of the Akeeba Engine.
|
abstractprotected |
Runs the finalisation process for this part. Should set _isFinished to true.
Référencé par tick().
|
finalprotected |
Constructs a Response Array based on the engine part's state.
Références AKAbstractObject\getError(), et AKAbstractObject\getWarnings().
Référencé par getStatusArray(), et tick().
|
abstractprotected |
Runs the preparation for this part. Should set _isPrepared to true
Référencé par tick().
|
abstractprotected |
Runs the main functionality loop for this part. Upon calling, should set the _isRunning to true. When it finished, should set the _hasRan to true. If an error is encountered, setError should be used.
Référencé par tick().
attach | ( | AKAbstractPartObserver | $obs | ) |
Attaches an observer object
AKAbstractPartObserver | $obs |
detach | ( | AKAbstractPartObserver | $obs | ) |
Detaches an observer object
AKAbstractPartObserver | $obs |
|
final |
Références $active_domain.
|
final |
Returns the state of this engine part.
Références AKAbstractObject\getError().
Référencé par AKAbstractUnarchiver\_run(), et tick().
getStatusArray | ( | ) |
|
final |
Références $active_step.
|
final |
Références $active_substep.
|
protected |
Notifies observers each time something interesting happened to the part
mixed | $message | The event object |
Références $message.
Référencé par AKAbstractUnarchiver\_run(), AKAbstractUnarchiver\fread(), et AKAbstractUnarchiver\scanArchives().
|
protected |
Sets the BREAKFLAG, which instructs this engine part that the current step must break immediately, in fear of timing out.
Références AKFactory\set().
|
finalprotected |
|
protected |
Sets the engine part's internal state, in an easy to use manner
string | $state | One of init, prepared, running, postrun, finished, error |
string | $errorMessage | The reported error message, should the state be set to error |
Références $state, et AKAbstractObject\setError().
Référencé par AKAbstractUnarchiver\_finalize(), AKAbstractUnarchiver\_prepare(), AKAbstractUnarchiver\_run(), AKAbstractUnarchiver\nextFile(), et setup().
|
finalprotected |
|
finalprotected |
|
final |
Sends any kind of setup information to the engine part. Using this, we avoid passing parameters to the constructor of the class. These parameters should be passed as an indexed array and should be taken into account during the preparation process only. This function will set the error flag if it's called after the engine part is prepared.
array | $parametersArray | The parameters to be passed to the engine part. |
Références setState().
|
final |
The public interface to an engine part. This method takes care for calling the correct method in order to perform the initialisation - run - finalisation cycle of operation and return a proper response array.
Références _finalize(), _makeReturnTable(), _prepare(), _run(), et getState().
|
protected |
|
protected |
Référencé par getDomain().
|
protected |
Référencé par getStep().
|
protected |
Référencé par getSubstep().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |