public function setAccesskey($character = null)
        {
            if (null !== $character
                && (!is_string($character) || 1 != strlen($character)))
            {
                throw new Exception(
                    'Invalid argument: $character must be a single character or null'
                );
            }

            $this->_accesskey = $character;

            return $this;
        }
public function setAccesskey($character = null)
        {
            if (null !== $character
                && (!is_string($character) || 1 != strlen($character)))
            {
                throw new Exception(
                    'Invalid argument: $character must be a single character or null'
                );
            }

            $this->_accesskey = $character;

            return $this;
        }
public function setAccesskey ( $ character = null ) { if ( null !== $ character && ( ! is_string ( $ character ) || 1 != strlen ( $ character ) ) ) { throw new Exception ( 'Invalid argument: $character must be a single character or null' ) ; } $ this -> _accesskey = $ character ; return $ this ; }
Sets access key for this page

@param  string|null $character     [optional] access key to set. Default
is null, which sets no access key.
@return Page       fluent interface, returns self
@throws Exception  if access key is not string or null or
if the string length not equal to one
Sets access key for this page