src/widgets/StockWidgets.php
private static function getStockWidgets ()
    {
        $reflectionClass = new \ReflectionClass(get_class());
        $classNames      = array();
        foreach ($reflectionClass->getConstants() as $name => $value)
            if (preg_match('/^STOCK_WP/', $name))
                $classNames[] = $value;
        return $classNames;
    }
private static function getStockWidgets ()
    {
        $reflectionClass = new \ReflectionClass(get_class());
        $classNames      = array();
        foreach ($reflectionClass->getConstants() as $name => $value)
            if (preg_match('/^STOCK_WP/', $name))
                $classNames[] = $value;
        return $classNames;
    }
private static function getStockWidgets ( ) { $ reflectionClass = new \ ReflectionClass ( get_class ( ) ) ; $ classNames = array ( ) ; foreach ( $ reflectionClass -> getConstants ( ) as $ name => $ value ) if ( preg_match ( '/^STOCK_WP/' , $ name ) ) $ classNames [ ] = $ value ; return $ classNames ; }
By means of class reflection, gets a list of all the classnames of the stock widgets
@return string[]
By means of class reflection gets a list of all the classnames of the stock widgets