public function getKeywords()
    {
        $keywords = [];

        foreach ($this->config()->get('global_keywords') as $k => $v) {
            $keywords[] = '<strong>'.$k.'</strong> ' . $v;
        }

        if ($this->NotifyOnClass && class_exists($this->NotifyOnClass)) {
            $dummy = singleton($this->NotifyOnClass);
            if ($dummy instanceof NotifiedOn || $dummy->hasMethod('getAvailableKeywords')) {
                $myKeywords = $dummy->getAvailableKeywords();
                
                if (is_array($myKeywords)) {
                    foreach ($myKeywords as $keyword => $desc) {
                        $keywords[] = '<strong>'.$keyword.'</strong> - '.$desc;
                    }
                }
            }
        }

        return $keywords;
    }
public function getKeywords()
    {
        $keywords = [];

        foreach ($this->config()->get('global_keywords') as $k => $v) {
            $keywords[] = '<strong>'.$k.'</strong> ' . $v;
        }

        if ($this->NotifyOnClass && class_exists($this->NotifyOnClass)) {
            $dummy = singleton($this->NotifyOnClass);
            if ($dummy instanceof NotifiedOn || $dummy->hasMethod('getAvailableKeywords')) {
                $myKeywords = $dummy->getAvailableKeywords();
                
                if (is_array($myKeywords)) {
                    foreach ($myKeywords as $keyword => $desc) {
                        $keywords[] = '<strong>'.$keyword.'</strong> - '.$desc;
                    }
                }
            }
        }

        return $keywords;
    }
public function getKeywords ( ) { $ keywords = [ ] ; foreach ( $ this -> config ( ) -> get ( 'global_keywords' ) as $ k => $ v ) { $ keywords [ ] = '<strong>' . $ k . '</strong> ' . $ v ; } if ( $ this -> NotifyOnClass && class_exists ( $ this -> NotifyOnClass ) ) { $ dummy = singleton ( $ this -> NotifyOnClass ) ; if ( $ dummy instanceof NotifiedOn || $ dummy -> hasMethod ( 'getAvailableKeywords' ) ) { $ myKeywords = $ dummy -> getAvailableKeywords ( ) ; if ( is_array ( $ myKeywords ) ) { foreach ( $ myKeywords as $ keyword => $ desc ) { $ keywords [ ] = '<strong>' . $ keyword . '</strong> - ' . $ desc ; } } } } return $ keywords ; }
Get a list of available keywords to help the cms user know what's available
@return array
Get a list of available keywords to help the cms user know what s available