GENERATOR FLAGS

A generator can have a different flags. The main advantage of those flags is that they are static and so can be cached for efficient usage.

Example:

class Example_FooGenerator extends Kwf_Component_Generator_Static_Page
{
    public function getGeneratorFlags()
    {
        $ret = parent::getGeneratorFlags();
        $ret['showInPageTreeAdmin'] = true;
        return $ret;
    }
}

class Example_Component extends Kwc_Abstract
{
    public static function getSettings()
    {
        $ret = parent::getSettings();
        $ret['generators']['foo'] = array(
            'class' => 'Example_FooGenerator',
            'component' => 'Example_Foo_Component',
            'name' => 'foo'
        );
        return $ret;
    }
}

This is a list of available generator flags: