src/Extensions/DataObjectExtension.php
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));
    }
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));
    }
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 ) ) ; }
Answers a HTML fragment containing the status badges for the extended object.

@return DBHTMLText
Answers a HTML fragment containing the status badges for the extended object .