class_STMANAGEData.inc.php 5.99 KB
<?php
/**
 * @file	STMANAGEData.inc.php
 * @category freeSN
 * @mailto	code [at] netz.coop
 * @version 0.4.200901
 * @link http://netz.coop
 * 
 *  @copyright Copyright by netz.coop e.G. 2015
 *  
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
class STMANAGEData {

    private static $ary_GenIn = array();
    private static $ary_testPar = array();
    private static $ary_testPath = array();
    private static $ary_browserIn = array();
    private static $ary_allTest = array('0' => '<b>SimpleTests:</b>');
    private static $ary_allLinks = array();
    private static $ary_genCfgSTStd = array();
    private static $ary_notInTagcloud = array();
    private static $ary_notInCategory = array();
    private static $_ST_notInRightsTest = array();

    public static function setnotInRightsTest($param_in, $param_name=null) {
        if ($param_name !== null) {
            self::$ary_notInTagcloud[$param_name] = $param_in;
        } else {
            array_push(self::$ary_notInTagcloud, $param_in);
        }
    }

    public static function getnotInRightsTest($param_name=null) {
        if ($param_name !== null) {
            return self::$ary_notInTagcloud[$param_name];
        } else {
            return self::$ary_notInTagcloud;
        }
    }

    public static function setnotInTagcloud($param_in, $param_name=null) {
        if ($param_name !== null) {
            self::$ary_notInTagcloud[$param_name] = $param_in;
        } else {
            array_push(self::$ary_notInTagcloud, $param_in);
        }
    }

    public static function getnotInTagcloud($param_name=null) {
        if ($param_name !== null) {
            return self::$ary_notInTagcloud[$param_name];
        } else {
            return self::$ary_notInTagcloud;
        }
    }

    public static function setnotInCategory($param_in, $param_name=null) {
        if ($param_name !== null) {
            self::$ary_notInCategory[$param_name] = $param_in;
        } else {
            array_push(self::$ary_notInCategory, $param_in);
        }
    }

    public static function getnotInCategory($param_name=null) {
        if ($param_name !== null) {
            return self::$ary_notInCategory[$param_name];
        } else {
            return self::$ary_notInCategory;
        }
    }

    public static function setGenCfgSTStd($param_in, $param_name=null) {
        if ($param_name !== null) {
            self::$ary_genCfgSTStd[$param_name] = $param_in;
        } else {
            array_push(self::$ary_genCfgSTStd, $param_in);
        }
    }

    public static function getGenCfgSTStd($param_name=null) {
        if ($param_name !== null) {
            return self::$ary_genCfgSTStd[$param_name];
        } else {
            return self::$ary_genCfgSTStd;
        }
    }

    public static function setAllLinks($param_in, $param_name=null) {
        if ($param_name) {
            self::$ary_allLinks[$param_name] = $param_in;
        } else {
            array_push(self::$ary_allLinks, $param_in);
        }
    }

    public static function getAllLinks($param_name=null) {
        if ($param_name) {
            return self::$ary_allLinks[$param_name];
        } else {
            return self::$ary_allLinks;
        }
    }

    public static function setAllTests($param_in, $param_name=null) {
        if ($param_name) {
            self::$ary_allTest[$param_name] = $param_in;
        } else {
            array_push(self::$ary_allTest, $param_in);
        }
    }

    public static function getAllTests($param_name=null) {
        if ($param_name) {
            return self::$ary_allTest[$param_name];
        } else {
            return self::$ary_allTest;
        }
    }

    public static function setGenIn($param_in, $param_name=null) {
        if ($param_name) {
            self::$ary_GenIn[$param_name] = $param_in;
        } else {
            array_push(self::$ary_GenIn, $param_in);
        }
    }

    public static function getGenIn($param_name=null) {
        if ($param_name) {
            return self::$ary_GenIn[$param_name];
        } else {
            return self::$ary_GenIn;
        }
    }

    public static function setBrowserIn($param_in, $param_name=null) {
        if ($param_name) {
            self::$ary_browserIn[$param_name] = $param_in;
        } else {
            array_push(self::$ary_browserIn, $param_in);
        }
    }

    public static function getBrowserIn($param_name=null) {
        if ($param_name) {
            return self::$ary_browserIn[$param_name];
        } else {
            return self::$ary_browserIn;
        }
    }

    public static function setTestPar($param_in, $param_name=null) {
        if ($param_name) {
            self::$ary_testPar[$param_name] = $param_in;
        } else {
            array_push(self::$ary_testPar, $param_in);
        }
    }

    public static function getTestPar($param_name=null) {
        if ($param_name) {
            return self::$ary_testPar[$param_name];
        } else {
            return self::$ary_testPar;
        }
    }

    public static function getTestPathIn($param_name=null) {
        if ($param_name) {
            return self::$ary_testPath[$param_name];
        } else {
            return self::$ary_testPath;
        }
    }

    public static function setTestPathIn($param_in, $param_name=null) {
        if ($param_name) {
            self::$ary_testPath[$param_name] = $param_in;
        } else {
            array_push(self::$ary_testPath, $param_in);
        }
    }

}
?>