Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1 KB

model_template_variation.rst

File metadata and controls

46 lines (28 loc) · 1 KB

Model_Template_Variation

.. php:namespace:: Nos\Template\Variation

.. php:class:: Model_Template_Variation

        Extends :php:class:`Nos\\Orm\\Model`.

Relations

.. php:attr:: pages

        * Relation type: :term:`has_many`.
        * Model: :php:class:`Nos\\Page\\Model_Page`

Providers

.. php:attr:: menus

        * Model: :php:class:`Nos\\Menu\\Model_Menu`

Behaviours

Methods

.. php:method:: configCompiled($reload = false)

    :param bool $reload: If true, reload the variation config
    :returns: Returns the configuration array of the template variation.

.. php:method:: templateConfig()

    :returns: Returns the configuration array of the template use by the variation.

.. php:staticmethod:: getTemplateVariationDefault($context)

    :param string $context: The context ID
    :returns: The default :php:class:`Model_Template_Variation` for this context