public function onAfterSaveEmployee(array $data, bool $isNew, JTable $table) : void

Fires after saving an employee.


Description

This hook is triggered after creating or updating an employee record.


Parameters

$data

(array)  The properties of the employee that have been saved.

$isNew

(bool)  True in case the employee has been created, false in case an existing employee was updated.

$model

(JTable)  The table instance that handles the saving process.

Return Value

None.


Example

/**
 * Trigger hook to allow the plugins to make something after
 * saving an employee.
 *
 * @param   mixed    $data   The saved record.
 * @param   boolean  $isNew  True if new, false in case of update.
 * @param   JTable   $table  The table instance.
 *
 * @return  void
 */
public function onAfterSaveEmployee($status, $data, $isNew, $table)
{
    /**
     * @todo do something after saving an employee
     */
}

Changelog

VersionDescription
1.7.0 Added $table argument.
1.6.4 Introduced.
Last Update: 2021-10-06 17:28
Helpful?
See Also:
This site uses cookies. By continuing to browse you accept their use. Further information