Fandom

Wikia Developers Wiki

Nirvana/WikiaObject

< Nirvana

896pages on
this wiki
Add New Page
Talk0 Share

WikiaObject is an abstract class which the other classes of the Nirvana framework build upon. Any classes inheriting from WikiaObject have access to global variables via a Nirvana/WikiaGlobalRegistry in $this->wg, and WikiaApp via $this->app.

Wikia coding conventions dictate that WikiaObject be used for classes that are not controllers but still needs framework variables. The use of Nirvana/WikiaModel is recommended in cases where database access is needed.

See also

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.