english/libraries/joomla/access/rule.php
/**
	 * Checks that this action can be performed by an identity.
	 *
	 * The identity is an integer where +ve represents a user group,
	 * and -ve represents a user.
	 *
	 * @param   mixed  $identities  An integer or array of integers representing the identities to check.
	 *
	 * @return  mixed  True if allowed, false for an explicit deny, null for an implicit deny.
	 *
	 * @since   11.1
	 */
Checks that this action can be performed by an identity.
The identity is an integer where +ve represents a user group,
and -ve represents a user.

@param   mixed  $identities  An integer or array of integers representing the identities to check.

@return  mixed  True if allowed, false for an explicit deny, null for an implicit deny.


Checks that this action can be performed by an identity . The identity is an integer where + ve represents a user group and - ve represents a user . @param mixed $identities An integer or array of integers representing the identities to check . @return mixed True if allowed false for an explicit deny null for an implicit deny .
public function allow($identities)
	{
		$result = null;
		if (!empty($identities))
		{
			if (!is_array($identities)) {
				$identities = array($identities);
			}
			foreach ($identities as $identity)
			{
				$identity = (int) $identity;
				if (isset($this->_data[$identity]))
				{
					$result = (boolean) $this->_data[$identity];
					if ($result === false) {
						break;
					}
				}
			}
		}
		return $result;
	}
public function allow ( $ identities ) { $ result = null ; if ( ! empty ( $ identities ) ) { if ( ! is_array ( $ identities ) ) { $ identities = array ( $ identities ) ; } foreach ( $ identities as $ identity ) { $ identity = ( int ) $ identity ; if ( isset ( $ this -> _data [ $ identity ] ) ) { $ result = ( boolean ) $ this -> _data [ $ identity ] ; if ( $ result === false ) { break ; } } } } return $ result ; }
Checks that this action can be performed by an identity.
Checks that this action can be performed by an identity .
// Implicit deny by default. // Check that the inputs are valid. // Technically the identity just needs to be unique. // Check if the identity is known. // An explicit deny wins.