Get the alpha channel.
@return int The alpha.
339548
public function getAlpha()
    {
        if (!is_numeric($this->markalpha)) {
            return 100;
        }

        if ($this->markalpha < 0 or $this->markalpha > 100) {
            return 100;
        }

        return (int) $this->markalpha;
    }
247820
public function getDirection()
    {
        if (null === $this->_direction) {
            if (null === $this->_string) {
                $this->_direction = static::LTR;
            } else {
                $this->_direction = static::getCharDirection(
                    \mb_substr($this->_string, 0, 1)
                );
            }
        }

        return $this->_direction;
    }
1292919
public function getEntropy()
    {
        if ('qwerty' === $this->graph || 'dvorak' === $this->graph) {
            $startingPos = $this->keyboardStartingPos;
            $avgDegree = $this->keyboardAvgDegree;
        } else {
            $startingPos = $this->keypadStartingPos;
            $avgDegree = $this->keypadAvgDegree;
        }

        $possibilities = 0;
        // estimate the number of possible patterns w/ token length or less with match turns or less.
        $tokenLength = strlen($this->token);
        for ($i = 2; $i <= $tokenLength; ++$i) {
            $possibleTurns = min($this->turns, $i - 1);

            for ($j = 1; $j <= $possibleTurns; ++$j) {
                $possibilities += $this->binom($i - 1, $j - 1) * $startingPos * ($avgDegree ** $j);
            }
        }
        $entropy = $this->log($possibilities);

        // add extra entropy for shifted keys. (% instead of 5, A instead of a.)
        if (!empty($this->shiftedCount)) {
            $possibilities = 0;
            $unshiftedCount = strlen($this->token) - $this->shiftedCount;
            $len = min($this->shiftedCount, $unshiftedCount);

            for ($i = 0; $i <= $len; ++$i) {
                $possibilities += $this->binom($this->shiftedCount + $unshiftedCount, $i);
            }
            $entropy += $this->log($possibilities);
        }

        return $entropy;
    }
839854
public function getCharset()
    {
        if ($this->isSlave() && ! $this->charset) {
            return $this->_master->getCharset();
        }

        return $this->charset;
    }
600380
protected function getLevel()
  {
    if($this->currObj instanceof Channel)
    {
      return $this->currObj->getLevel()+2;
    }
    elseif($this->currObj instanceof Client)
    {
      return $this->currObj->channelGetById($this->currObj->cid)->getLevel()+3;
    }

    return 1;
  }
885284
public function getAcceptEncoding()
    {
        if ($this->acceptEncoding === null) {
            $this->acceptEncoding = isset($_SERVER['HTTP_ACCEPT_ENCODING']) ? $_SERVER['HTTP_ACCEPT_ENCODING'] : '';
        }

        return $this->acceptEncoding;
    }
475974
public function regenerateChannel()
    {
        $channel = $this->channel;
        $this->channel = $this->amqp->channel();

        return $channel;
    }
871136
public function getRgba()
    {
        return sprintf('rgba(%d, %d, %d, %.2F)',
            $this->getRedValue(),
            $this->getGreenValue(),
            $this->getBlueValue(),
            $this->getAlphaValue()
        );
    }
359009
public static function getSelfURLhost()
    {
        $currenthost = self::getSelfHost();

        $port = '';

        if (self::isHTTPS()) {
            $protocol = 'https';
        } else {
            $protocol = 'http';
        }

        $portnumber = self::getSelfPort();

        if (isset($portnumber) && ($portnumber != '80') && ($portnumber != '443')) {
            $port = ':' . $portnumber;
        }

        return $protocol."://" . $currenthost . $port;
    }
1116363
public function getMethod()
    {
        if(!isset($this->_method) && isset($_SERVER['REQUEST_METHOD']))
        {
            $method = strtoupper($_SERVER['REQUEST_METHOD']);

            if($method == 'POST')
            {
                if($this->_headers->has('X-Http-Method-Override')) {
                    $method = strtoupper($this->_headers->get('X-Http-Method-Override'));
                }

                if($this->data->has('_method')) {
                    $method = strtoupper($this->data->get('_method', 'alpha'));
                }
            }

            $this->_method = $method;
        }

        return $this->_method;
    }
426051
public function getCharset()
    {
        return (isset(Yii::$app->charset) ? Yii::$app->charset : null) ?: mb_internal_encoding();
    }
491862
public function current()
    {
        if ($this->buffer === null) {
            $this->buffer = -2; // implicitly disable buffering from here on
        } elseif (is_array($this->buffer) && isset($this->buffer[$this->position])) {
            return $this->buffer[$this->position];
        }
        $data = $this->dataSource->current();
        
        if (is_array($this->buffer)) {
            $this->buffer[$this->position] = $data;
        }
        
        if ($this->returnType === self::TYPE_ARRAYOBJECT && is_array($data)) {
            $ao = clone $this->arrayObjectPrototype;
            if ($ao instanceof ArrayObject || method_exists($ao, 'exchangeArray')) {
                if ($ao instanceof AbstractModel) {
                    if(null === $this->array_prefix) {
                        $tab = [];
                        foreach ($data as $k => $v){
                            if(strpos($k, '$')!==false) {
                                $tab[] = explode('$', $k)[0];
                            }
                        }
                        $this->array_prefix = array_unique($tab);
                    }
                    $ao->setArrayPrefix($this->array_prefix);
                }
                $ao->exchangeArray($data);
            }
            $data = $ao;
        }
            
        if ($this->bufferArrayObjectPrototype && $this->buffer[$this->position] !== $data) {
            $this->buffer[$this->position] = $data;
        }

        return $data;
    }
853191
public function getValue()
    {
        return (((int) $this->getRed() & 0xFF) << 16) |
                (((int) $this->getGreen() & 0xFF) << 8) |
                (((int) $this->getBlue() & 0xFF)) |
                (((int) $this->getAlpha() & 0xFF) << 24);
    }
722829
public function chanPri()
    {
        try
        {
            return $this->getSNMP()->walk1d( self::OID_ASTERISK_CHANNEL_PRI );
        }
        catch( \Cityware\Snmp\Exception $e )
        {
            return null;
        }
    }
837832
public function getAnchor()
    {
        if ($this->UrlSegment) {
            return Convert::raw2url($this->UrlSegment);
        }
        if ($this->Title) {
            return Convert::raw2url($this->Title);
        }
        return false;
    }
452723
public static function alpha($str)
    {
        if(is_array($str)){
            foreach($str as $key=>$val){
                $str[$key] = self::alpha($val);
            }
            return $str;
        }
        return preg_replace('/[^a-z]/i', '', $str);
    }
305046
public function getRgba(){
        $rgba = $this->hexToRgb( $this->hexString );
        $rgba[] = $this->alpha;
        return $rgba;
    }