Back to RulesRule class

Method getValueActions

protected array
getValueActions
(mixed $value)
Method to get the list of permission action names from the form field value.
Parameters
  • mixed $value The form field value to validate.
Returns
  • array A list of permission action names from the form field value.
Since
  • 1.7.0
Class: RulesRule
Project: Joomla

Method getValueActions - Source code

/**
 * Method to get the list of permission action names from the form field value.
 *
 * @param   mixed  $value  The form field value to validate.
 *
 * @return  array  A list of permission action names from the form field value.
 *
 * @since   1.7.0
 */
protected function getValueActions($value)
{
    $actions = array();
    // Iterate over the asset actions and add to the actions.
    foreach ((array) $value as $name => $rules) {
        $actions[] = $name;
    }
    return $actions;
}