/**
  * Return serwis object.
  * @return Serwis
  */
 public function GetSerwis()
 {
     if ($this->_IsSerwisObjSet == false) {
         $this->_SerwisObj = Serwisy::GetSerwis($this->Getserwisy_GID(), $this->GetIdJezyk());
         $this->_IsSerwisObjSet = true;
     }
     return $this->_SerwisObj;
 }
Exemple #2
0
function scriptsJS()
{
    $return_string = "";
    $as = new ArkuszeSkrypty();
    $ss = new Serwisy();
    $serwis = $ss->GetSerwis(Config::$WebGID, 1045);
    $hta = array();
    $hta['GIDSerwis'] = $serwis->GetGID();
    $arks = $as->PobierzSkrypty($hta);
    foreach ($arks as $ar) {
        $return_string .= $ar->GetTresc();
    }
    $fh = fopen($_SERVER['DOCUMENT_ROOT'] . Config::$AppPath . "/js/z-outer.js", "w");
    fwrite($fh, $return_string);
    fclose($fh);
}
Exemple #3
0
 /**
  * Returns default service, from config.php ($WebGID).
  * @return Serwis
  */
 public function GetSerwis()
 {
     return $s = Serwisy::GetSerwis(Config::$WebGID, lngId());
 }