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


PHP anyC::getNextEntry方法代码示例

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


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

示例1: getNav

 private function getNav($parentID, $domain)
 {
     $mNav = new anyC();
     $mNav->setCollectionOf("Navigation");
     $mNav->addAssocV3("parentID", "=", $parentID);
     $mNav->addAssocV3("DomainID", "=", $domain);
     $mNav->addOrderV3("sort");
     $mNav->lCV3();
     if ($mNav->numLoaded() == 0) {
         return;
     }
     $html = "\n\t\t<ul style=\"list-style-image:none;list-style-type:none;\" id=\"sortable_{$parentID}\">";
     while ($n = $mNav->getNextEntry()) {
         $B = new Button("Element bearbeiten", "./images/i2/edit.png");
         $B->type("icon");
         $B->onclick("contentManager.loadFrame('contentLeft','Navigation','" . $n->getID() . "');");
         $B->style("float:left;margin-right:10px;");
         $D = new Button("Element löschen", "./images/i2/delete.gif");
         $D->type("icon");
         $D->onclick("deleteClass('Navigation','" . $n->getID() . "', function() { contentManager.reloadFrameRight(); if(typeof lastLoadedLeft != 'undefined' &amp;&amp; lastLoadedLeft == '1') \$('contentLeft').update(''); },'Element und alle Unterelemente wirklich löschen?');");
         $D->style("float:right;margin-right:10px;");
         $html .= "<li id=\"NavigationElementID_" . $n->getID() . "\" style=\"" . ($n->A("hidden") == "1" ? "text-decoration:line-through;" : "") . "\">{$D}<img src=\"./images/i2/topdown.png\" class=\"navigationHandler_sortable_{$parentID}\"\" style=\"cursor:pointer;float:right;margin-right:10px;\" />{$B}" . ($n->A("name") == "" ? "&lt;kein Name&gt;" : $n->A("name")) . $this->getNav($n->getID(), $domain) . "</li>";
     }
     #
     $html .= "\n\t\t</ul>\n\t\t<script type=\"text/javascript\">Website.add('sortable_{$parentID}');</script>";
     return $html;
 }
开发者ID:nemiah,项目名称:projectMankind,代码行数:27,代码来源:mWebsiteGUI.class.php

示例2: activate

 public function activate()
 {
     /*$ac = new anyC();
     		$ac->setCollectionOf("FhemPreset");
     		$ac->addJoinV3("FhemServer","FhemPresetServerID","=","FhemServerID");
     		$ac->addAssocV3("FhemPresetID", "=", $PresetID);
     		$S = $ac->getNextEntry();*/
     $S = new FhemServer($this->A("FhemPresetServerID"));
     switch ($S->A("FhemServerType")) {
         case "0":
             try {
                 $T = new Telnet($S->A("FhemServerIP"), $S->A("FhemServerPort"));
             } catch (NoServerConnectionException $e) {
                 die("error:'The connection to the server with IP-address " . $S->A("FhemServerIP") . " could not be established!'");
             }
             $c = "set " . $this->A("FhemPresetName") . " on";
             $T->fireAndForget($c);
             $T->disconnect();
             break;
         case "1":
             $ac = new anyC();
             $ac->setCollectionOf("FhemEvent");
             $ac->addAssocV3("FhemEventPresetID", "=", $this->ID);
             $ac->lCV3();
             while ($E = $ac->getNextEntry()) {
                 $S->setDevice($E->A("FhemEventFhemID"), $E->A("FhemEventAction"));
             }
             break;
     }
 }
开发者ID:nemiah,项目名称:fheME,代码行数:30,代码来源:FhemPreset.class.php

示例3: getLocations

 function getLocations()
 {
     $AC = new anyC();
     $AC->setCollectionOf("FhemLocation");
     $Locations = array();
     while ($L = $AC->getNextEntry()) {
         $Locations[] = $L->getID() . "::" . $L->A("FhemLocationName");
     }
     return $Locations;
 }
开发者ID:nemiah,项目名称:fheME,代码行数:10,代码来源:ExtConnFhem.class.php

示例4: getAvailableCategories

 public function getAvailableCategories()
 {
     $AC = new anyC();
     $AC->setCollectionOf("Serie");
     $AC->addGroupV3("status");
     $status = array();
     while ($S = $AC->getNextEntry()) {
         $status[$S->A("status")] = $S->A("status");
     }
     return $status;
 }
开发者ID:nemiah,项目名称:trinityDB,代码行数:11,代码来源:mSerieGUI.class.php

示例5: testDownloaded

 public static function testDownloaded($link)
 {
     $AC = new anyC();
     $AC->setCollectionOf("JDownload");
     $AC->addAssocV3("JDownloadURL", "=", $link);
     $L = $AC->getNextEntry();
     if ($L == null) {
         return false;
     }
     return true;
 }
开发者ID:nemiah,项目名称:trinityDB,代码行数:11,代码来源:JDownload.class.php

示例6: getCalendarData

 public static function getCalendarData($firstDay, $lastDay)
 {
     $K = new Kalender();
     $AC = new anyC();
     $AC->setCollectionOf("Adresse");
     $AC->addAssocV3("type", "=", "default");
     $AC->addAssocV3("AuftragID", "=", "-1");
     $AC->addAssocV3("geb", "!=", "0");
     while ($t = $AC->getNextEntry()) {
         $K->addEvent(self::getCalendarDetails("mFAdresseGUI", $t->getID(), $t));
     }
     return $K;
 }
开发者ID:nemiah,项目名称:fheME,代码行数:13,代码来源:mFAdresseGUI.class.php

示例7: getHTML

 public function getHTML($id)
 {
     $bps = $this->getMyBPSData();
     $t = new HTMLTable(1);
     $t->setTableStyle("width:160px;float:right;margin-right:10px;");
     if (!isset($bps["ID"])) {
         $F = new mFhemGUI();
         $F->addAssocV3("FhemType", "!=", "FHZ");
         while ($f = $F->getNextEntry()) {
             $B = new Button($f->getA()->FhemName, "./fheME/Fhem/fhem.png");
             $B->onclick("contentManager.loadFrame('contentRight','mFhemTimer',-1,0,'mFhemTimerGUI;ID:" . $f->getID() . ";type:D;name:" . $f->getA()->FhemName . "');");
             $t->addRow($B);
             $t->addRowClass("backgroundColor0");
         }
         $t->addRow("");
         $t->addRowClass("backgroundColor1");
         $F = new anyC();
         $F->setCollectionOf("FhemPreset");
         $F->addAssocV3("FhemPresetHide", "=", "0");
         while ($f = $F->getNextEntry()) {
             $B = new Button($f->getA()->FhemPresetName, "./fheME/Fhem/events.png");
             $B->onclick("contentManager.loadFrame('contentRight','mFhemTimer',-1,0,'mFhemTimerGUI;ID:" . $f->getID() . ";type:P;name:" . $f->getA()->FhemPresetName . "');");
             $t->addRow($B);
             $t->addRowClass("backgroundColor0");
         }
         return $t;
     }
     if (isset($bps["ID"])) {
         if ($bps["type"] == "D") {
             $F = new Fhem($bps["ID"]);
             $F->loadMe();
             $FF = new Fhem("timer");
             $FF->setA($F->getA());
             $C = new FhemControlGUI();
             $control = $C->getControl($FF);
         } else {
             $control = "";
         }
         $rand = rand(10, 10000000);
         $B = new Button("set timer", "okCatch");
         $B->rme("FhemControl", '', 'setTimer', array($bps["ID"], "'setBPSValue'", "'{$bps['type']}'", "parent.clock4Timer{$rand}.stunden", "parent.clock4Timer{$rand}.minuten", "'{$bps['name']}'"), "contentManager.loadFrame(\\'contentRight\\',\\'mFhem\\',-1,0,\\'\\');");
         $B->style("float:right;");
         $t->addRow("<iframe name=\"clock4Timer{$rand}\" style=\"width:240px;height:330px;border:0px;\" src=\"./libraries/ClockGUI.class.php\"></iframe>");
         $t->addRowClass("backgroundColor0");
         $t->addRow($B);
         $t->addRowClass("backgroundColor0");
         return $control . $t;
     }
 }
开发者ID:nemiah,项目名称:fheME,代码行数:49,代码来源:mFhemTimerGUI.class.php

示例8: runRules

 public function runRules()
 {
     $AC = new anyC();
     $AC->setCollectionOf("IncomingPrettify");
     $AC->addAssocV3("IncomingPrettifyIsActive", "=", "1");
     $I = new mIncoming();
     $files = $I->getNewFiles();
     echo "<div style=\"max-height:400px;overflow:auto;font-size:10px;padding:5px;\">";
     $run = mUserdata::getUDValueS("trinityDBPrettifyExecute", "0") == "1";
     if (!$run) {
         echo "<p style=\"color:red;margin-bottom:10px;\">The following operations are NOT executed, this is only a preview!<br />To execute the operations, you'll have to enable it in the options.</p>";
     }
     foreach ($files as $path) {
         $newName = basename($path);
         if (strpos(strtolower($newName), ".part") == strlen($newName) - 5) {
             continue;
         }
         if (strpos(strtolower($newName), ".mkv") != strlen($newName) - 4 and strpos(strtolower($newName), ".mp4") != strlen($newName) - 4) {
             continue;
         }
         while ($P = $AC->getNextEntry()) {
             $newName = preg_replace("/" . str_replace(".", "\\.", $P->A("IncomingPrettifyFind")) . "/e" . ($P->A("IncomingPrettifyCaseSensitive") == "1" ? "" : "i"), str_replace(array("//", "."), array("\\", "\\."), $P->A("IncomingPrettifyReplace")), $newName);
         }
         $newName = str_replace("\\", "", $newName);
         $AC->resetPointer();
         if ($newName != basename($path)) {
             $color = "";
             if ($run) {
                 $renamed = str_replace(basename($path), $newName, $path);
                 if (file_exists($renamed)) {
                     $color = "color:red;";
                 } else {
                     if (rename($path, $renamed)) {
                         $color = "color:green;";
                     } else {
                         $color = "color:red;";
                     }
                 }
             }
             echo "<span style=\"{$color}\">" . basename($path) . " -><br />" . basename($newName) . "</span><br /><br />";
         }
     }
     echo "</div>";
 }
开发者ID:nemiah,项目名称:trinityDB,代码行数:44,代码来源:mIncomingPrettifyGUI.class.php

示例9: filterNew

 public function filterNew()
 {
     $this->loadFeed();
     $xml = RSSFilter::$feeds[$this->A("RSSFilterFeed")];
     $Adapter = $this->getFeedAdapter();
     $ac = new anyC();
     $ac->setCollectionOf("Serie");
     $Serien = array();
     while ($S = $ac->getNextEntry()) {
         $Serien[strtolower($S->A("name"))] = $S;
         $Serien[strtolower($S->A("altFeedName1"))] = $S;
     }
     $new = array();
     foreach ($xml->channel->item as $v) {
         $Epis = $Adapter->parseItem($v);
         if (!isset($Serien[strtolower($Epis->name)]) and $Epis->name != "") {
             $new[strtolower($Epis->name)] = $Epis;
         }
     }
     return $new;
 }
开发者ID:nemiah,项目名称:trinityDB,代码行数:21,代码来源:RSSFilter.class.php

示例10: createMoveScript

 public function createMoveScript($run = false)
 {
     if (!$run) {
         header("Content-Type: application/x-shellscript; charset=UTF-8");
         if (!Util::isWindowsHost()) {
             header("Content-Disposition: attachment; filename=\"move.sh\"");
         } else {
             header("Content-Disposition: attachment; filename=\"move.bat\"");
         }
     }
     $new = $this->findNewEpisodes();
     $maxlength = 0;
     foreach ($new as $series) {
         foreach ($series as $episode) {
             if (strlen($episode["path"]) > $maxlength) {
                 $maxlength = strlen($episode["path"]);
             }
         }
     }
     $code = "";
     foreach ($new as $series) {
         if (count($series) == 0) {
             continue;
         }
         if ($series[0]["pointer"]->A("dir") == "") {
             continue;
         }
         if (!Util::isWindowsHost()) {
             $code .= "##" . $series[0]["name"] . "\n";
         } else {
             $code .= "echo \"" . $series[0]["name"] . "\"\r\n";
         }
         #$code .= print_r($series, true);
         foreach ($series as $episode) {
             if ($episode["pointer"]->A("dir") == "") {
                 continue;
             }
             $AC = new anyC();
             $AC->setCollectionOf("Folge");
             $AC->addAssocV3("SerieID", "=", $episode["pointer"]->getID());
             $AC->addAssocV3("season", "=", $episode["season"]);
             $AC->addAssocV3("episode", "=", $episode["episode"]);
             $AC->addAssocV3("wanted", "=", "1");
             $F = $AC->getNextEntry();
             if ($F == null) {
                 continue;
             }
             if (!Util::isWindowsHost()) {
                 $code .= "mv \"" . str_pad($episode["path"] . "\"", $maxlength + 3) . " \"" . $episode["pointer"]->A("dir") . "/" . $F->getNewFileName($episode["pointer"], $F->getSuffix(basename($episode["path"]))) . "\";\n";
             } else {
                 $code .= "move /-Y '" . str_pad(str_replace("/", "\\", $episode["path"]) . "\"", $maxlength + 3) . " \"" . str_replace("/", "\\", $episode["pointer"]->A("dir")) . "\\" . $F->getNewFileName($episode["pointer"], $F->getSuffix(basename($episode["path"]))) . "';\r\n";
             }
         }
         $code .= "\n";
     }
     if (!$run) {
         echo $code;
     } else {
         $SC = new SystemCommand();
         $SC->setCommand($code);
         $SC->execute();
     }
     #print_r();
     #echo Util::getBasicHTMLText(trim($code)."\n\n", "move script");
 }
开发者ID:nemiah,项目名称:trinityDB,代码行数:65,代码来源:mIncomingGUI.class.php

示例11: lostPassword

 public function lostPassword($username)
 {
     // <editor-fold defaultstate="collapsed" desc="Aspect:jP">
     try {
         $MArgs = func_get_args();
         return Aspect::joinPoint("around", $this, __METHOD__, $MArgs);
     } catch (AOPNoAdviceException $e) {
     }
     Aspect::joinPoint("before", $this, __METHOD__, $MArgs);
     // </editor-fold>
     if ($username == "") {
         Red::errorC("User", "lostPasswordErrorUser");
     }
     $Lang = $this->loadLanguageClass("User")->getText();
     $ac = new anyC();
     $ac->setCollectionOf("User");
     $ac->addAssocV3("username", "=", $username);
     $ac->lCV3();
     $U = $ac->getNextEntry();
     if ($U == null) {
         try {
             $AL = new mphynxAltLogin();
             $AL->addAssocV3("username", "=", $username);
             $U = $AL->getNextEntry();
         } catch (Exception $e) {
             Red::errorC("User", "lostPasswordErrorUser");
         }
     }
     if ($U == null) {
         Red::errorC("User", "lostPasswordErrorUser");
     }
     $Admin = new anyC();
     $Admin->setCollectionOf("User");
     $Admin->addAssocV3("isAdmin", "=", "1");
     $Admin = $Admin->getNextEntry();
     if ($Admin == null) {
         Red::errorC("User", "lostPasswordErrorAdmin");
     }
     if ($Admin->A("UserEmail") == "") {
         Red::errorC("User", "lostPasswordErrorAdmin");
     }
     $mail = new htmlMimeMail5();
     $mail->setFrom("phynx@" . $_SERVER["HTTP_HOST"]);
     $mail->setSubject("[phynx] Password recovery for user {$username}");
     $mail->setText(wordwrap("Dear " . $Admin->A("name") . ",\n\nyou received this email because the user '{$username}' of the phynx framework at {$_SERVER['HTTP_HOST']} has lost his password and is requesting a new one.\n\nBest regards\n\tphynx", 80));
     if (!$mail->send(array($Admin->A("UserEmail")))) {
         Red::errorC("User", "lostPasswordErrorAdmin");
     }
     Red::alertC("User", "lostPasswordOK");
 }
开发者ID:nemiah,项目名称:poolPi,代码行数:50,代码来源:Users.class.php

示例12: findNewEpisodes

 public function findNewEpisodes()
 {
     $episodes = $this->getNewFiles(true);
     $ac = new anyC();
     $ac->setCollectionOf("Serie");
     #$ac->addAssocV3("status", "=", "Continuing");
     $found = array();
     while ($S = $ac->getNextEntry()) {
         $found[] = $S->findNewEpisodes($episodes);
     }
     return $found;
 }
开发者ID:nemiah,项目名称:trinityDB,代码行数:12,代码来源:mIncoming.class.php

示例13: Download

 *  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/>.
 * 
 *  2007 - 2012, Rainer Furtmeier - Rainer@Furtmeier.de
 */
error_reporting(E_ALL);
require "./multiCMSData/connect.php";
if (isset($_GET["filedl"])) {
    $DL = new Download($_GET["filedl"]);
    $DL->makeDownload();
    header("Location: " . $DL->getA()->url);
    exit;
}
if (isset($_GET["newestdl"])) {
    $aC = new anyC();
    $aC->setCollectionOf("Download");
    $aC->addAssocV3("ContentID", "=", $_GET["newestdl"]);
    $aC->addOrderV3("datum", "DESC");
    $aC->setLimitV3("1");
    $DL = $aC->getNextEntry();
    $DL = new Download($DL->getID());
    if (!isset($_GET["getLink"])) {
        $DL->makeDownload();
        header("Location: " . $DL->getA()->url);
        exit;
    } else {
        die($DL->getA()->url);
    }
}
开发者ID:nemiah,项目名称:projectMankind,代码行数:31,代码来源:multiCMSDownload.php

示例14: update

 public function update($echo = false)
 {
     $oldest = new anyC();
     $oldest->setCollectionOf("Serie");
     $oldest->addOrderV3("lastupdate", "ASC");
     $oldest->addAssocV3("status", "=", "Continuing");
     $oldest->addAssocV3("lastupdate", "<", time() - 3600 * 24 * 3);
     $oldest->setLimitV3("2");
     while ($S = $oldest->getNextEntry()) {
         $this->download($S, $echo);
     }
     $oldest = new anyC();
     $oldest->setCollectionOf("Serie");
     $oldest->addOrderV3("lastupdate", "ASC");
     $oldest->addAssocV3("status", "=", "Ended");
     $oldest->addAssocV3("lastupdate", "<", time() - 3600 * 24 * 21);
     $oldest->setLimitV3("1");
     while ($S = $oldest->getNextEntry()) {
         $this->download($S, $echo);
     }
     $oldest = new anyC();
     $oldest->setCollectionOf("Serie");
     $oldest->addOrderV3("lastupdate", "ASC");
     $oldest->addAssocV3("lastupdate", "<", time() - 3600 * 24 * 3, "AND", "1");
     $oldest->addAssocV3("status", "=", "Continuing", "AND", "1");
     $oldest->addAssocV3("lastupdate", "<", time() - 3600 * 24 * 21, "OR", "2");
     $oldest->addAssocV3("status", "=", "Ended", "AND", "2");
     $oldest->lCV3();
     return $oldest->numLoaded();
 }
开发者ID:nemiah,项目名称:trinityDB,代码行数:30,代码来源:thetvdbcomAdapter.class.php

示例15: header

         header("HTTP/1.1 301 Moved Permanently");
         header("Location: http" . ((isset($_SERVER["HTTPS"]) and $_SERVER["HTTPS"] == "on") ? "s" : "") . "://www." . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
         header("Connection: close");
     }
     if (count($ex) > 0 and $domain->A("umleitung") == "2" and $_SERVER["HTTP_HOST"] != trim($ex[0])) {
         header("HTTP/1.1 301 Moved Permanently");
         header("Location: http" . ((isset($_SERVER["HTTPS"]) and $_SERVER["HTTPS"] == "on") ? "s" : "") . "://" . trim($ex[0]) . $_SERVER["REQUEST_URI"]);
         header("Connection: close");
     }
 }
 if (isset($_GET["permalink"]) and $_GET["permalink"] != "") {
     $ac = new anyC();
     $ac->setCollectionOf("Seite");
     $ac->addAssocV3("permalink", "=", $_GET["permalink"]);
     $ac->addAssocV3("DomainID", "=", $domain->getID());
     $resolvedPL = $ac->getNextEntry();
     if ($resolvedPL == null) {
         header("HTTP/1.1 404 Not Found");
         emoFatalError("Die gesuchte Seite kann leider nicht gefunden werden", "Die Seite, die Sie suchen, existiert nicht (mehr).<br />Vielleicht m&ouml;chten Sie die Suche auf der <a href=\"/\">Startseite</a> fortsetzen.", "multiCMS", "./multiCMS");
         #header("Connection: close");
         #exit();
         #die("Die gew&uuml;nschte Seite existiert nicht!");
     }
     $_GET["p"] = $resolvedPL->getID();
     if ($ac->numLoaded() != 1) {
         die("der Permalink {$_GET['permalink']} ist nicht eindeutig und verweist auf " . $ac->numLoaded() . " Seiten!");
     }
 }
 if (isset($_GET["p"])) {
     $domain->setSeite($_GET["p"]);
 }
开发者ID:nemiah,项目名称:projectMankind,代码行数:31,代码来源:index.php


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