Пример #1
0
 function getInstance()
 {
     if (!isset(self::$instance[get_class()])) {
         self::$instance = new Spaces();
     }
     return self::$instance;
 }
Пример #2
0
<?php

/**
 *      [PHPB2B] Copyright (C) 2007-2099, Ualink Inc. All Rights Reserved.
 *      The contents of this file are subject to the License; you may not use this file except in compliance with the License. 
 *
 *      @version $Revision: 2133 $
 */
require "../libraries/common.inc.php";
require "room.share.php";
$spacelink = new Spaces();
$tpl_file = "link";
if (!$company->Validate($companyinfo)) {
    flash("pls_complete_company_info", "company.php", 0);
}
if (isset($_POST['delete'])) {
    $deleted = false;
    if (is_array($_POST['id'])) {
        $ids = "(" . implode(",", $_POST['id']) . ")";
        $deleted = $pdb->Execute("DELETE FROM {$tb_prefix}spacelinks WHERE member_id={$the_memberid} AND id IN {$ids}");
        if ($deleted) {
            flash("success");
        } else {
            flash();
        }
    } else {
        flash("no_data_deleted");
    }
}
if (isset($_POST['save'])) {
    $record = array();
Пример #3
0
 function setLinks($memberid, $companyid = 0)
 {
     $_this =& Spaces::getInstance();
     $this->links = $_this->getSpaceLinks($memberid, $companyid = 0);
 }