protected function getFieldActions($element)
	{
		// Initialise variables.
		$actions = array();

		// Initialise some field attributes.
		$section   = $element['section']   ? (string) $element['section']   : '';
		$component = $element['component'] ? (string) $element['component'] : '';

		// Get the asset actions for the element.
		$component = $component ? \App::get('component')->path($component) . '/config/access.xml' : '';
		$section   = $section ? "/access/section[@name='" . $section . "']/" : '';

		$elActions = Access::getActionsFromFile($component, $section);

		if (is_array($elActions))
		{
			// Iterate over the asset actions and add to the actions.
			foreach ($elActions as $item)
			{
				$actions[] = $item->name;
			}
		}

		// Iterate over the children and add to the actions.
		foreach ($element->children() as $el)
		{
			if ($el->getName() == 'action')
			{
				$actions[] = (string) $el['name'];
			}
		}

		return $actions;
	}
protected function getFieldActions($element)
	{
		// Initialise variables.
		$actions = array();

		// Initialise some field attributes.
		$section   = $element['section']   ? (string) $element['section']   : '';
		$component = $element['component'] ? (string) $element['component'] : '';

		// Get the asset actions for the element.
		$component = $component ? \App::get('component')->path($component) . '/config/access.xml' : '';
		$section   = $section ? "/access/section[@name='" . $section . "']/" : '';

		$elActions = Access::getActionsFromFile($component, $section);

		if (is_array($elActions))
		{
			// Iterate over the asset actions and add to the actions.
			foreach ($elActions as $item)
			{
				$actions[] = $item->name;
			}
		}

		// Iterate over the children and add to the actions.
		foreach ($element->children() as $el)
		{
			if ($el->getName() == 'action')
			{
				$actions[] = (string) $el['name'];
			}
		}

		return $actions;
	}
protected function getFieldActions ( $ element ) { // Initialise variables. $ actions = array ( ) ; // Initialise some field attributes. $ section = $ element [ 'section' ] ? ( string ) $ element [ 'section' ] : '' ; $ component = $ element [ 'component' ] ? ( string ) $ element [ 'component' ] : '' ; // Get the asset actions for the element. $ component = $ component ? \ App :: get ( 'component' ) -> path ( $ component ) . '/config/access.xml' : '' ; $ section = $ section ? "/access/section[@name='" . $ section . "']/" : '' ; $ elActions = Access :: getActionsFromFile ( $ component , $ section ) ; if ( is_array ( $ elActions ) ) { // Iterate over the asset actions and add to the actions. foreach ( $ elActions as $ item ) { $ actions [ ] = $ item -> name ; } } // Iterate over the children and add to the actions. foreach ( $ element -> children ( ) as $ el ) { if ( $ el -> getName ( ) == 'action' ) { $ actions [ ] = ( string ) $ el [ 'name' ] ; } } return $ actions ; }
Method to get the list of possible permission action names for the form field.

@param   object  $element  The SimpleXMLElement object representing the <field /> tag for the form field object.
@return  array   A list of permission action names from the form field element definition.
Method to get the list of possible permission action names for the form field .