CI_User_agent::_set_mobile PHP Метод

_set_mobile() защищенный Метод

Set the Mobile Device
protected _set_mobile ( ) : boolean
Результат boolean
    protected function _set_mobile()
    {
        if (is_array($this->mobiles) && count($this->mobiles) > 0) {
            foreach ($this->mobiles as $key => $val) {
                if (FALSE !== stripos($this->agent, $key)) {
                    $this->is_mobile = TRUE;
                    $this->mobile = $val;
                    return TRUE;
                }
            }
        }
        return FALSE;
    }