Beispiel #1
0
 /**
  * @return SKADATE_CLASS_EventHandler
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
Beispiel #2
0
OW::getThemeManager()->addDecorator('user_big_list_item', 'skadate');
function skadate_get_question_page_checkbox_content(OW_Event $event)
{
    $params = $event->getParams();
    $data = $event->getData();
    if (empty($params['question']['name'])) {
        return;
    }
    if ($params['question']['name'] == 'sex') {
        $data['join'] = '<div class="on_join ow_checkbox ow_checkbox_cell_marked_lock"></div>';
        $event->setData($data);
    }
}
OW::getEventManager()->bind('admin.questions.get_question_page_checkbox_content', 'skadate_get_question_page_checkbox_content');
SKADATE_CLASS_EventHandler::getInstance()->genericInit();
OW::getEventManager()->bind('speedmatch.display_mutual_message', array(SKADATE_CLASS_EventHandler::getInstance(), 'displaySpeedmatchMutualMessage'));
function skadate_get_soft_version_text(OW_Event $event)
{
    $plugin = OW::getPluginManager()->getPlugin('skadate')->getDto();
    $var = array('skadate_version' => 'Skadate', 'skadate_build' => $plugin->build, 'oxwall_version' => OW::getConfig()->getValue('base', 'soft_version'), 'oxwall_build' => OW::getConfig()->getValue('base', 'soft_build'));
    $text = OW::getLanguage()->text('skadate', 'soft_version', $var);
    $event->setData($text);
}
OW::getEventManager()->bind('admin.get_soft_version_text', 'skadate_get_soft_version_text');
function skadate_after_plugin_init(OW_Event $event)
{
    if (OW::getPluginManager()->getPlugin('skadate')->getDto()->build == 7651 && OW::getConfig()->configExists('skadate', 'update_gender_values')) {
        SKADATE_BOL_AccountTypeToGenderService::getInstance()->getInstance()->updateGenderValues();
        OW::getConfig()->saveConfig('skadate', 'update_gender_values', false);
    }
}
Beispiel #3
0
<?php

/**
 * Copyright (c) 2014, Skalfa LLC
 * All rights reserved.
 * 
 * ATTENTION: This commercial software is intended for exclusive use with SkaDate Dating Software (http://www.skadate.com) and is licensed under SkaDate Exclusive License by Skalfa LLC.
 * 
 * Full text of this license can be found at http://www.skadate.com/sel.pdf
 */
SKADATE_CLASS_EventHandler::getInstance()->genericInit();
SKADATE_CLASS_EventHandler::getInstance()->apiInit();