indeximstudio/curator-modx

There is no license information available for the latest version (1.0.3) of this package.

1.0.3 2018-03-09 22:03 UTC

This package is not auto-updated.

Last update: 2024-05-08 00:50:29 UTC


README

#Хранитель Modx (вообще, то любой переменной)

Подключение

В терминале

composer require indeximstudio/curator-modx

Процедурный стиль

Заносим переменную в класс

CuratorModx::setModx($modx)

Пользуемся переменной

CuratorModx::getModx()

В классах

Так же класс можно унаследовать и обращаться к переменной с помощью метода

self::setModx()

и

self::getModx()

или как в процедурном стиле, через имя класса