Returns the Flags attribute of the font.
@return int The Flags
421011
public int getFlags() {
        int flags = 32;    // Use Adobe Standard charset
        if (italicAngle != 0) {
            flags = flags | 64;
        }
        if (isFixedPitch != 0) {
            flags = flags | 2;
        }
        if (hasSerifs) {
            flags = flags | 1;
        }
        return flags;
    }
252553
public function getStatusBadges()
    {
        // Initialise:
        
        $badges = [];
        
        // Iterate Status Flags:
        
        foreach ($this->owner->getStatusFlags() as $class => $flag) {
            
            $badges[] = sprintf(
                '<span class="badge status-%s" title="%s">%s</span>',
                Convert::raw2xml($class),
                Convert::raw2xml($flag['title']),
                Convert::raw2xml($flag['text'])
            );
            
        }
        
        // Answer HTML Fragment:
        
        return DBField::create_field('HTMLFragment', implode(' ', $badges));
    }
241818
public function getStatusIcons()
    {
        static $status;

        if (is_null($status)) {
            $spanU = \MUtil_Html::create('span', array('class' => 'fa-stack', 'renderClosingTag' => true));
            $spanU->i(array('class' => 'fa fa-circle fa-stack-2x', 'renderClosingTag' => true));
            $spanU->i(array('class' => 'fa fa-question fa-stack-1x fa-inverse', 'renderClosingTag' => true));

            $spanW = \MUtil_Html::create('span', array('class' => 'fa-stack', 'renderClosingTag' => true));
            $spanW->i(array('class' => 'fa fa-circle fa-stack-2x', 'renderClosingTag' => true));
            $spanW->i(array('class' => 'fa fa-ellipsis-h fa-stack-1x fa-inverse', 'renderClosingTag' => true));

            $spanO = \MUtil_Html::create('span', array('class' => 'fa-stack', 'renderClosingTag' => true));
            $spanO->i(array('class' => 'fa fa-circle fa-stack-2x', 'renderClosingTag' => true));
            $spanO->i(array('class' => 'fa fa-play fa-stack-1x fa-inverse', 'renderClosingTag' => true));

            $spanA = \MUtil_Html::create('span', array('class' => 'fa-stack', 'renderClosingTag' => true));
            $spanA->i(array('class' => 'fa fa-circle fa-stack-2x', 'renderClosingTag' => true));
            $spanA->i(array('class' => 'fa fa-check fa-stack-1x fa-inverse', 'renderClosingTag' => true));

            $spanP = \MUtil_Html::create('span', array('class' => 'fa-stack', 'renderClosingTag' => true));
            $spanP->i(array('class' => 'fa fa-circle fa-stack-2x', 'renderClosingTag' => true));
            $spanP->i(array('class' => 'fa fa-pause fa-stack-1x fa-inverse', 'renderClosingTag' => true));

            $spanI = \MUtil_Html::create('span', array('class' => 'fa-stack', 'renderClosingTag' => true));
            $spanI->i(array('class' => 'fa fa-circle fa-stack-2x', 'renderClosingTag' => true));
            $spanI->i(array('class' => 'fa fa-stop fa-stack-1x fa-inverse', 'renderClosingTag' => true));

            $spanM = \MUtil_Html::create('span', array('class' => 'fa-stack', 'renderClosingTag' => true));
            $spanM->i(array('class' => 'fa fa-circle fa-stack-2x', 'renderClosingTag' => true));
            $spanM->i(array('class' => 'fa fa-lock fa-stack-1x fa-inverse', 'renderClosingTag' => true));

            $spanD = \MUtil_Html::create('span', array('class' => 'fa-stack', 'renderClosingTag' => true));
            $spanD->i(array('class' => 'fa fa-times fa-stack-2x', 'renderClosingTag' => true));

            $status = array(
                'U' => $spanU,
                'W' => $spanW,
                'O' => $spanO,
                'A' => $spanA,
                'P' => $spanP,
                'I' => $spanI,
                'M' => $spanM,
                'D' => $spanD,
            );

            foreach ($status as $val => $stat) {
                $stat->appendAttrib('class', $this->getStatusClass($val));
            }
        }

        return $status;
    }
1273633
private function getCharacter()
    {
        $character = [];
        $char_index = 0;
        $character_area = $this->_parser->find('div[class^=detail-characters-list]', 0);
        if ($character_area) {
            $character_list = [
                $character_area->find('div[class*=fl-l]', 0),
                $character_area->find('div[class*=fl-r]', 0),
            ];
            foreach ($character_list as $character_side) {
                if ($character_side) {
                    foreach ($character_side->find('table[width=100%]') as $each_char) {
                        $char = $each_char->find('tr td', 1);
                        $va = $each_char->find('table td', 0);

                        $character[$char_index]['id'] = $this->getStaffId($char);
                        $character[$char_index]['name'] = $this->getStaffName($char);
                        $character[$char_index]['role'] = $this->getStaffRole($char);
                        $character[$char_index]['image'] = $this->getStaffImage($each_char);

                        $character[$char_index]['va_id'] = $character[$char_index]['va_name'] = '';
                        $character[$char_index]['va_role'] = $character[$char_index]['va_image'] = '';

                        if ($va) {
                            $character[$char_index]['va_id'] = $this->getStaffId($va);
                            $character[$char_index]['va_name'] = $this->getStaffName($va, true);
                            $character[$char_index]['va_role'] = $this->getStaffRole($va);
                            $character[$char_index]['va_image'] = $this->getStaffImage($each_char, true);
                        }

                        $char_index++;
                    }
                }
            }
        }

        return $character;
    }
1216067
public function getFormStyle()
    {
        $prop = array();

        $prop['alignment'] = $this->value['text-align'];

        if (isset($this->value['background']['color']) && is_array($this->value['background']['color'])) {
            $prop['fillColor'] = $this->value['background']['color'];
        }

        if (isset($this->value['border']['t']['color'])) {
            $prop['strokeColor'] = $this->value['border']['t']['color'];
        }

        if (isset($this->value['border']['t']['width'])) {
            $prop['lineWidth'] = $this->value['border']['t']['width'];
        }

        if (isset($this->value['border']['t']['type'])) {
            $prop['borderStyle'] = $this->value['border']['t']['type'];
        }

        if (!empty($this->value['color'])) {
            $prop['textColor'] = $this->value['color'];
        }

        if (!empty($this->value['font-size'])) {
            $prop['textSize'] = $this->value['font-size'];
        }

        return $prop;
    }
537963
protected function parseListOfIcons()
    {
        $cache = $this->cacheManager->getCache('Default');
        $cacheId = 'FontIconDataSource_parseListOfIcons';

        if (!($icons = $cache->get($cacheId))) {
            $icons = [];
            foreach (file(self::$iconsListFilePath) as $content) {
                if (preg_match('#fa-var-([-_a-z0-9]+):#i', $content, $match)) {
                    $icons[] = $match[1];
                }
            }

            $cache->set($cacheId, $icons, [], 0);
        }

        return $icons;
    }
971900
public function getAssetId(): int
    {
        return (isset($this->attrs['asset_id']) && !empty($this->attrs['asset_id'])) ?
            $this->attrs['asset_id'] : 0;
    }
749050
public function htmlAttributes()
    {
        if ($this->direction() === 'rtl' || $this->direction() !== $this->script()->direction()) {
            return 'lang="' . $this->languageTag() . '" dir="' . $this->direction() . '"';
        } else {
            return 'lang="' . $this->languageTag() . '"';
        }
    }
707342
def flags(self):
        """"""
        return set((name.lower() for name in sorted(TIFF.FILE_FLAGS)
                    if getattr(self, 'is_' + name)))
715125
public function getStatusLabelAttribute()
    {
        $labels = [
            Self::STATUS_RESERVED  => 'reserved',
            Self::STATUS_CONFIRMED => 'confirmed',
            Self::STATUS_CANCELED  => 'canceled',
            Self::STATUS_SERVED    => 'served',
            ];

        return array_key_exists($this->status, $labels)
            ? $labels[$this->status]
            : '';
    }
737888
public function getFlagValues()
    {
        $this->parseIfNotParsed();
        return array_map(function(Option $flag) {
            return $flag->getValue();
        }, $this->dedupeFlags());
    }
926028
protected function getSuffixFlag()
  {
    if(!$this->currObj instanceof TeamSpeak3_Node_Client) return;

    if($this->flagpath && $this->currObj["client_country"])
    {
      return $this->getImage($this->currObj["client_country"]->toLower() . ".png", $this->currObj["client_country"], null, FALSE, TRUE);
    }
  }
1372408
public function get_label() {
		if ( $this->label_has_placeholder() ) {
			return sprintf( $this->label, $this->get_element_markup() );
		} else {
			return $this->label;
		}
	}
289461
public function getRules()
    {
        $base = 1024;

        $this->defaultParams['num_decimals'] = 0;
        $this->defaultParams['round_type']   = Formatter::ROUND_NONE;

        return array(
            'byte' => array(
                'symbol' => 'B',
                'rate'   => 1,
            ),
            'kb'   => array(
                'symbol' => 'KB',
                'rate'   => pow($base, 1),
            ),
            'mb'   => array(
                'symbol' => 'MB',
                'rate'   => pow($base, 2),
            ),
            'gb'   => array(
                'symbol' => 'GB',
                'rate'   => pow($base, 3),
            ),
            'tb'   => array(
                'symbol' => 'TB',
                'rate'   => pow($base, 4),
            ),
            'pb'   => array(
                'symbol' => 'PB',
                'rate'   => pow($base, 5),
            ),
            'eb'   => array(
                'symbol' => 'EB',
                'rate'   => pow($base, 6),
            ),
            'zb'   => array(
                'symbol' => 'ZB',
                'rate'   => pow($base, 7),
            ),
            'yb'   => array(
                'symbol' => 'YB',
                'rate'   => pow($base, 8),
            ),

            'bit'  => array(
                'symbol' => 'Bit',
                'rate'   => function ($value, $ruleTo) {

                    if ($ruleTo === 'bit') {
                        return $value * 8;
                    }

                    return $value / 8;
                },
            ),
        );
    }
842651
public function getStatusFlags()
    {
        // Initialise:
        
        $flags = [];
        
        // Is Extended Object Versioned?
        
        if ($this->owner->hasExtension(Versioned::class)) {
            
            if ($this->owner->isOnLiveOnly()) {
                
                // Extended Object Removed from Draft:
                
                $flags['removedfromdraft'] = array(
                    'text'  => _t(__CLASS__ . '.ONLIVEONLYSHORT', 'On live only'),
                    'title' => _t(__CLASS__ . '.ONLIVEONLYSHORTHELP', 'Record is live, but removed from draft'),
                );
                
            } elseif ($this->owner->isArchived()) {
                
                // Extended Object Archived:
                
                $flags['archived'] = [
                    'text'  => _t(__CLASS__ . '.ARCHIVEDSHORT', 'Archived'),
                    'title' => _t(__CLASS__ . '.ARCHIVEDHELP', 'Record is removed from draft and live')
                ];
                
            } elseif ($this->owner->isOnDraftOnly()) {
                
                // Extended Object Added to Draft:
                
                $flags['addedtodraft'] = [
                    'text'  => _t(__CLASS__ . '.ADDEDTODRAFTSHORT', 'Draft'),
                    'title' => _t(__CLASS__ . '.ADDEDTODRAFTHELP', 'Record has not been published yet')
                ];
                
            } elseif ($this->owner->isModifiedOnDraft()) {
                
                // Extended Object Modified on Draft:
                
                $flags['modified'] = [
                    'text'  => _t(__CLASS__ . '.MODIFIEDONDRAFTSHORT', 'Modified'),
                    'title' => _t(__CLASS__ . '.MODIFIEDONDRAFTHELP', 'Record has unpublished changes')
                ];
                
            }
            
        }
        
        // Apply Extensions:
        
        $this->owner->extend('updateStatusFlags', $flags);
        
        // Answer Flags:
        
        return $flags;
    }
10627
public function getAllFlat()
    {
        $aOut       = [];
        $aLanguages = $this->getAll();

        foreach ($aLanguages as $oLanguage) {
            $aOut[$oLanguage->code] = $oLanguage->label;
        }

        return $aOut;
    }
575706
public int getVirtualGroupFlags() {

        int flags = I_CmsPrincipal.FLAG_GROUP_VIRTUAL;
        flags += I_CmsPrincipal.FLAG_GROUP_VIRTUAL * 2 * getSystemRoles().indexOf(forOrgUnit(null));
        return flags;
    }