xenforoaddon_customMessages.../upload/library/customMessages4siropuChat/Setup.php

21 lines
518 B
PHP

<?php
class customMessages4siropuChat_Setup {
public static $im = null;
public static function getInstallModel(){
if(is_null(self::$im)){
self::$im = XenForo_Model::create('customMessages4siropuChat_Model');
}
return self::$im;
}
public static function install($installedAddon){
$version = is_array($installedAddon) ? $installedAddon['version_id'] : -1;
if($version < 0){
self::getInstallModel()->install();
}
}
public static function uninstall(){
self::getInstallModel()->uninstall();
}
}