当前位置: 首页>>代码示例>>PHP>>正文


PHP Factory::sA方法代码示例

本文整理汇总了PHP中Factory::sA方法的典型用法代码示例。如果您正苦于以下问题:PHP Factory::sA方法的具体用法?PHP Factory::sA怎么用?PHP Factory::sA使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Factory的用法示例。


在下文中一共展示了Factory::sA方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: createNewServer

 public function createNewServer()
 {
     $F = new Factory("xCal");
     $F->sA("xCalServerActive", "1");
     $F->sA("xCalUserID", Session::currentUser()->getID());
     $F->store();
 }
开发者ID:nemiah,项目名称:fheME,代码行数:7,代码来源:mxCalGUI.class.php

示例2: sendMessage

 function sendMessage($to, $text)
 {
     $F = new Factory("phim");
     $target = $to;
     $group = 0;
     if ($to[0] == "g") {
         $group = str_replace("g", "", $to);
         $to = 0;
     }
     $F->sA("phimFromUserID", Session::currentUser()->getID());
     $F->sA("phimToUserID", $to);
     $F->sA("phimTime", time());
     $F->sA("phimMessage", $text);
     $F->sA("phimphimGruppeID", $group);
     $message = new stdClass();
     $message->method = "message";
     $message->content = $text;
     $message->from = Session::currentUser()->getID();
     $message->fromUser = Session::currentUser()->A("name");
     $message->to = $to;
     $message->time = time();
     $message->group = $group;
     $F->store();
     $this->go($message, $target);
 }
开发者ID:nemiah,项目名称:fheME,代码行数:25,代码来源:phimGUI.class.php

示例3: addFrozenItem

 public function addFrozenItem($name)
 {
     if (preg_match("/[0-9]+/", $name)) {
         $this->addEAN($name, false);
     } elseif (trim($name) != "") {
         $F = new Factory("Gefrierschrank");
         $F->sA("GefrierschrankName", $name);
         $F->sA("GefrierschrankAdded", "1");
         $F->store();
     }
     echo $this->getFrozenListTable();
 }
开发者ID:nemiah,项目名称:fheME,代码行数:12,代码来源:mGerichtGUI.class.php

示例4: createNew

 public function createNew()
 {
     $F = new Factory("TinkerforgeBricklet");
     $F->sA("TinkerforgeBrickletTinkerforgeID", $this->getID());
     $F->store();
     echo $this->bricklets();
 }
开发者ID:nemiah,项目名称:fheME,代码行数:7,代码来源:TinkerforgeGUI.class.php

示例5: checkAdresse

 private function checkAdresse()
 {
     if (!isset($_POST["lead_id"])) {
         die("Keine Lead-ID übergeben!");
     }
     $S = anyC::get("Sync", "SyncGUID", $_POST["lead_id"]);
     $S->addAssocV3("SyncOwnerClass", "=", "Adresse");
     $Sync = $S->getNextEntry();
     #if($Sync == null){
     $Adresse = new Adresse(-1);
     $A = $Adresse->newAttributes();
     $F = new Factory("Adresse", $Sync == null ? -1 : $Sync->A("SyncOwnerClassID"));
     foreach ($_POST as $k => $v) {
         if (!isset($A->{$k})) {
             continue;
         }
         $F->sA($k, $v);
     }
     $F->store();
     $Adresse = $F->gO();
     if ($Sync == null) {
         $K = new Kunden();
         $K->createKundeToAdresse($Adresse->getID());
         mSync::updateGUID("Adresse", $Adresse->getID(), $_POST["lead_id"]);
     }
     return $Adresse;
 }
开发者ID:nemiah,项目名称:trinityDB,代码行数:27,代码来源:CCAuftrag.class.php

示例6: deleteMe

 function deleteMe()
 {
     $F = new Factory("UserOld");
     $F->sA("UserOldUserID", $this->getID());
     $id = $F->store();
     $O = new UserOld($id);
     $this->loadMe();
     $A = $this->getA();
     foreach ($A as $k => $v) {
         if ($O->A($k) !== null) {
             $O->changeA($k, $v);
         }
     }
     $O->saveMe();
     parent::deleteMe();
 }
开发者ID:nemiah,项目名称:poolPi,代码行数:16,代码来源:User.class.php

示例7: sendMessage

 public function sendMessage($target, $message, $from, $urgency = 50)
 {
     if (trim($message) == "") {
         return;
     }
     $F = new Factory("Nuntius");
     $F->sA("NuntiusDeviceID", $target);
     $F->sA("NuntiusSender", $from);
     $F->sA("NuntiusTime", time());
     $F->sA("NuntiusUrgency", $urgency);
     $F->sA("NuntiusMessage", $message);
     $F->sA("NuntiusRead", $urgency < 10 ? "1" : "0");
     return $F->store();
 }
开发者ID:nemiah,项目名称:fheME,代码行数:14,代码来源:mNuntius.class.php

示例8: logDownload

 private function logDownload($logLink, $link, $fileName = "", $fileSize = 0, Serie $Serie = null, $renamed = false)
 {
     $F = new Factory("JDownload");
     $F->sA("JDownloadURL", $logLink);
     $F->sA("JDownloadFilename", $link);
     $F->sA("JDownloadRenameto", $fileName);
     $F->sA("JDownloadJDID", $this->getID());
     $F->sA("JDownloadSerieID", $Serie != null ? $Serie->getID() : 0);
     if ($renamed) {
         $F->sA("JDownloadRenamed", time());
     }
     $E = $F->exists(true);
     if ($E === false) {
         $F->sA("JDownloadDate", time());
         $F->sA("JDownloadFilesize", $fileSize);
         $id = $F->store();
     } else {
         $E->changeA("JDownloadDate", time());
         $E->changeA("JDownloadFilesize", $fileSize);
         $E->saveMe();
         $id = $E->getID();
     }
     return $id;
 }
开发者ID:nemiah,项目名称:trinityDB,代码行数:24,代码来源:JD.class.php

示例9: createContent

 public function createContent()
 {
     $F = new Factory("Content");
     $F->sA("SeiteID", $this->ID);
     $F->sA("TemplateID", TemplatesGUI::getDefault("contentTemplate"));
     $F->store(true, true);
 }
开发者ID:nemiah,项目名称:projectMankind,代码行数:7,代码来源:SeiteGUI.class.php

示例10: addSettingNew

 public function addSettingNew($type)
 {
     $F = new Factory("System");
     $F->sA("SystemType", $type);
     echo $F->store();
 }
开发者ID:nemiah,项目名称:poolPi,代码行数:6,代码来源:mSystemGUI.class.php

示例11: discoverNow

 public function discoverNow($reloadWhat = null, $force = false, $quiet = false)
 {
     $last = mUserdata::getGlobalSettingValue("UPnPLastDiscover", 0);
     if (time() - $last < 3600 * 3.5 and !$force) {
         return;
     }
     $C = new phpUPnP();
     $result = $C->mSearch();
     #print_r($result);
     if (!$quiet) {
         echo "<p>Gefundene Geräte:</p>";
     }
     #$locations = array();
     $L = new HTMLList();
     $L->addListStyle("list-style-type:none;");
     $foundLocations = array();
     #echo "<pre style=\"padding:5px;font-size:9px;overflow:auto;height:400px;\">";
     #print_r($result);
     #echo "</pre>";
     foreach ($result as $r) {
         if (isset($foundLocations[$r["location"]])) {
             continue;
         }
         $info = file_get_contents($r["location"]);
         if ($info === false) {
             continue;
         }
         $xml = new SimpleXMLElement($info);
         $services = array();
         foreach ($xml->device->serviceList->service as $service) {
             foreach (self::$desiredServices as $k => $S) {
                 if ($service->serviceId[0] == $S) {
                     $services[$k] = $service;
                 }
             }
         }
         #echo "<pre>";
         #print_r($xml->device->UDN);
         #echo "</pre>";
         $F = new Factory("UPnP");
         $F->sA("UPnPUDN", $xml->device->UDN);
         $L->addItem($xml->device->friendlyName);
         $U = $F->exists(true);
         if ($U !== false) {
             $U->changeA("UPnPLocation", $r["location"]);
             #$U->changeA("UPnPName", $xml->device->friendlyName);
             $U->changeA("UPnPModelName", $xml->device->modelName);
             $U->changeA("UPnPUDN", $xml->device->UDN);
             foreach (self::$desiredServices as $S => $nil) {
                 $U->changeA("UPnP{$S}", 0);
             }
             foreach ($services as $S => $service) {
                 $U->changeA("UPnP{$S}", 1);
                 $U->changeA("UPnP" . $S . "SCPDURL", $service->SCPDURL[0] . "");
                 $U->changeA("UPnP" . $S . "controlURL", $service->controlURL[0] . "");
             }
             #echo "save";
             $U->saveMe();
         } else {
             $F->sA("UPnPLocation", $r["location"]);
             $F->sA("UPnPName", $xml->device->friendlyName);
             $F->sA("UPnPModelName", $xml->device->modelName);
             foreach (self::$desiredServices as $S => $nil) {
                 $F->sA("UPnP{$S}", 0);
             }
             foreach ($services as $S => $service) {
                 $F->sA("UPnP{$S}", 1);
                 $F->sA("UPnP" . $S . "SCPDURL", $service->SCPDURL[0] . "");
                 $F->sA("UPnP" . $S . "controlURL", $service->controlURL[0] . "");
             }
             #echo "store";
             $F->store();
         }
         $foundLocations[$r["location"]] = true;
     }
     $AC = anyC::get("UPnP");
     while ($U = $AC->getNextEntry()) {
         if (!isset($foundLocations[$U->A("UPnPLocation")])) {
             $U->deleteMe();
         }
     }
     if (!$quiet) {
         echo $L;
     }
     $B = new Button("OK", "bestaetigung");
     $B->style("float:right;margin:10px;");
     if ($reloadWhat == "targets") {
         $B->onclick(OnEvent::closePopup("mUPnP") . " UPnP.targetSelection();");
     }
     if ($reloadWhat == "sources") {
         $B->onclick(OnEvent::closePopup("mUPnP") . " UPnP.sourceSelection();");
     }
     if ($reloadWhat) {
         echo $B . "<div style=\"clear:both;\"></div>";
     }
     mUserdata::setUserdataS("UPnPLastDiscover", time(), "", -1);
     #echo "</pre>";
 }
开发者ID:nemiah,项目名称:fheME,代码行数:98,代码来源:mUPnP.class.php

示例12: die

<?php

define("PHYNX_NO_SESSION_RELOCATION", true);
require "../../system/connect.php";
addClassPath(Util::getRootPath() . "ubiquitous/phim");
$T = mUserdata::getGlobalSettingValue("phimServerToken");
if (!$T) {
    die("<phynx><phim><token>unknown</token></phim></phynx>");
}
if ($T !== filter_input(INPUT_GET, "token")) {
    die("<phynx><phim><token>unknown</token></phim></phynx>");
}
$U = anyC::getFirst("phimUser", "phimUserSystemName", str_replace("\\", "/", filter_input(INPUT_GET, "user")));
if ($U == null) {
    $F = new Factory("phimUser");
    $F->sA("phimUserSystemName", str_replace("\\", "/", filter_input(INPUT_GET, "user")));
    $F->store();
    die("<phynx><phim><token>unknown</token></phim></phynx>");
}
echo "<phynx><phim><token>" . $U->A("phimUserToken") . "</token></phim></phynx>";
开发者ID:nemiah,项目名称:fheME,代码行数:20,代码来源:provisioning.php

示例13: addInvitee

 public function addInvitee($TodoID, $name, $email)
 {
     $F = new Factory("TodoInvitation");
     $F->sA("TodoInvitationTodoID", $TodoID);
     $F->sA("TodoInvitationName", $name);
     $F->sA("TodoInvitationUserEmail", $email);
     #$F->sA("TodoInvitationStatus", 0);
     if ($F->exists()) {
         $this->getInvitees($TodoID);
         return;
     }
     $F->store();
     $this->getInvitees($TodoID);
 }
开发者ID:nemiah,项目名称:fheME,代码行数:14,代码来源:mTodoGUI.class.php

示例14: reAddItem

 public function reAddItem($EinkaufszettelID, $overviewList = false)
 {
     $E = new Einkaufszettel($EinkaufszettelID);
     $E->changeA("EinkaufszettelAdded", $E->A("EinkaufszettelAdded") + 1);
     $E->saveMe();
     $F = new Factory("Einkaufszettel");
     $F->sA("EinkaufszettelBought", "0");
     $F->sA("EinkaufszettelName", $E->A("EinkaufszettelName"));
     $exists = $F->exists(true);
     if ($exists !== false) {
         $exists->changeA("EinkaufszettelMenge", $exists->A("EinkaufszettelMenge") + 1);
         $exists->saveMe();
     } else {
         #$E->changeA("EinkaufszettelBought", "0");
         #$E->changeA("EinkaufszettelTime", time());
         $F->sA("EinkaufszettelMenge", "1");
         #$E->newMe();
         $F->sA("EinkaufszettelEinkaufszettelKategorieID", $E->A("EinkaufszettelEinkaufszettelKategorieID"));
         $F->sA("EinkaufszettelTime", time());
         $F->store();
     }
     #$F->sA("EinkaufszettelName", $E->A("EinkaufszettelName"));
     #$exists  = $F->exists(true);
     #if($exists !== false){
     #$exists->changeA("EinkaufszettelMenge", $exists->A("EinkaufszettelMenge") + 1);
     #	$exists->saveMe();
     #} else {
     #	$E->changeA("EinkaufszettelBought", "0");
     #
     #$E->changeA("EinkaufszettelMenge", "1");
     #	$E->newMe();
     #}
     #if(!$overviewList)
     echo $this->getListTable();
     #else
     #	echo $this->getOverviewList();
 }
开发者ID:nemiah,项目名称:fheME,代码行数:37,代码来源:mEinkaufszettelGUI.class.php

示例15: saveCols

 public function saveCols($data, $DeviceID, $col)
 {
     $O = anyC::getFirst("fheOverview", "fheOverviewDeviceID", $DeviceID);
     if ($O == null) {
         $F = new Factory("fheOverview");
         $F->sA("fheOverviewDeviceID", $DeviceID);
         $F->store();
         $O = anyC::getFirst("fheOverview", "fheOverviewDeviceID", $DeviceID);
     }
     $O->changeA("fheOverviewCol{$col}", $data);
     $O->saveMe(true, true);
 }
开发者ID:nemiah,项目名称:fheME,代码行数:12,代码来源:mfheOverviewGUI.class.php


注:本文中的Factory::sA方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。