protected function getPriorityFromAttributes($attrs)
    {
        if (!is_array($attrs) || !isset($attrs['priority'])) {
            return 0;
        }
        $p = intval($attrs['priority']);

        return $p < 0 ? 0 : $p;
    }
protected function getPriorityFromAttributes($attrs)
    {
        if (!is_array($attrs) || !isset($attrs['priority'])) {
            return 0;
        }
        $p = intval($attrs['priority']);

        return $p < 0 ? 0 : $p;
    }
protected function getPriorityFromAttributes ( $ attrs ) { if ( ! is_array ( $ attrs ) || ! isset ( $ attrs [ 'priority' ] ) ) { return 0 ; } $ p = intval ( $ attrs [ 'priority' ] ) ; return $ p < 0 ? 0 : $ p ; }
Returns the event priority from the tag attributes.
If no priority specified returns priority 0.

@param mixed $attrs tag attributes

@return string event priotity
Returns the event priority from the tag attributes . If no priority specified returns priority 0 .