Pimcore\Log\Handler\ApplicationLoggerDb::getComponents PHP Method

getComponents() public static method

public static getComponents ( ) : string[]
return string[]
    public static function getComponents()
    {
        $db = Database::get();
        $components = $db->fetchCol("SELECT component FROM " . \Pimcore\Log\Handler\ApplicationLoggerDb::TABLE_NAME . " WHERE NOT ISNULL(component) GROUP BY component;");
        return $components;
    }

Usage Example

Example #1
0
 public function componentJsonAction()
 {
     $components[] = array("key" => "-", "value" => "");
     foreach (ApplicationLoggerDb::getComponents() as $p) {
         $components[] = array("key" => $p, "value" => $p);
     }
     $this->_helper->json(array("components" => $components));
 }
All Usage Examples Of Pimcore\Log\Handler\ApplicationLoggerDb::getComponents