當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DatabaseObject::handleData方法代碼示例

本文整理匯總了PHP中DatabaseObject::handleData方法的典型用法代碼示例。如果您正苦於以下問題:PHP DatabaseObject::handleData方法的具體用法?PHP DatabaseObject::handleData怎麽用?PHP DatabaseObject::handleData使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在DatabaseObject的用法示例。


在下文中一共展示了DatabaseObject::handleData方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: handleData

 /**
  * @see DatabaseObject::handleData()
  */
 protected function handleData($data)
 {
     parent::handleData($data);
     if (!$this->moduleID) {
         $this->data['moduleID'] = 0;
     }
 }
開發者ID:Evil-Co-Legacy,項目名稱:Evil-Co.de-CMS,代碼行數:10,代碼來源:DynamicPageModuleTemplate.class.php

示例2: handleData

 /**
  * @see DatabaseObject::handleData()
  */
 protected function handleData($data)
 {
     parent::handleData($data);
     if (!$this->serverID) {
         $this->data['serverID'] = 0;
     }
 }
開發者ID:Evil-Co-Legacy,項目名稱:Bash-Database,代碼行數:10,代碼來源:Server.class.php

示例3: handleData

 /**
  * @see DatabaseObject::handleData()
  */
 protected function handleData($data)
 {
     parent::handleData($data);
     if (!$this->entryID) {
         $this->data['entryID'] = 0;
     }
 }
開發者ID:Evil-Co-Legacy,項目名稱:Bash-Database,代碼行數:10,代碼來源:BashEntry.class.php

示例4: handleData

 /**
  * @see DatabaseObject::handleData()
  */
 protected function handleData($data)
 {
     parent::handleData($data);
     $this->placeholders = @unserialize($this->placeholders);
     if (!is_array($this->placeholders)) {
         $this->placeholders = array();
     }
 }
開發者ID:CaribeSoy,項目名稱:contest-wcf,代碼行數:11,代碼來源:ContestEvent.class.php

示例5: handleData

 /**
  * @see DatabaseObject::handleData()
  */
 protected function handleData($data)
 {
     parent::handleData($data);
     if (!$this->pageID) {
         $this->data['pageID'] = 0;
     } else {
         $this->data['moduleManager'] = new ModuleManager($this->pageID);
     }
 }
開發者ID:Evil-Co-Legacy,項目名稱:Evil-Co.de-CMS,代碼行數:12,代碼來源:DynamicPage.class.php

示例6: handleData

 /**
  * @see DatabaseObject::handleData()
  */
 protected function handleData($data)
 {
     parent::handleData($data);
     if ($this->isViewable() == false) {
         $this->message = WCF::getLanguage()->get('wcf.contest.solution.message.hidden');
         $this->attachments = 0;
     }
     $this->subject = WCF::getLanguage()->get('wcf.contest.solution.number', array('$solutionID' => $this->solutionID, '$time' => $this->time));
 }
開發者ID:CaribeSoy,項目名稱:contest-wcf,代碼行數:12,代碼來源:ContestSolution.class.php

示例7: handleData

 /**
  * @see	DatabaseObject::handleData()
  */
 public function handleData($data)
 {
     parent::handleData($data);
     if ($this->data['additionalData'] !== null) {
         $this->data['additionalData'] = unserialize($this->data['additionalData']);
     } else {
         $this->data['additionalData'] = array();
     }
 }
開發者ID:RouL,項目名稱:Actionlog-Utils,代碼行數:12,代碼來源:LogEntry.class.php

示例8: handleData

 /**
  * @see DatabaseObject::handleData()
  */
 protected function handleData($data)
 {
     parent::handleData($data);
     if (!$this->instanceID) {
         $this->data['instanceID'] = 0;
     } else {
         $this->data['options'] = unserialize($this->data['options']);
     }
 }
開發者ID:Evil-Co-Legacy,項目名稱:Evil-Co.de-CMS,代碼行數:12,代碼來源:AbstractModule.class.php

示例9: handleData

 /**
  * @see DatabaseObject::handleData()
  */
 protected function handleData($data)
 {
     parent::handleData($data);
     if (!$this->commentID) {
         $this->data['commentID'] = 0;
     }
     $this->enableSmilies = $this->enableSmilies == 1 ? true : false;
     $this->enableHtml = $this->enableHtml == 1 ? true : false;
     $this->enableBBCodes = $this->enableBBCodes == 1 ? true : false;
 }
開發者ID:Evil-Co-Legacy,項目名稱:Bash-Database,代碼行數:13,代碼來源:ServerComment.class.php

示例10: handleData

 /**
  * @see	DatabaseObject::handleData()
  */
 protected function handleData($data)
 {
     parent::handleData($data);
     if (!$this->hostID) {
         $this->data['hostID'] = 0;
     }
     if ($this->hostID) {
         // change var types
         $this->isFallback = (bool) $this->isFallback;
         $this->isDisabled = (bool) $this->isDisabled;
     }
 }
開發者ID:Evil-Co-Legacy,項目名稱:Evil-Co.de-CMS,代碼行數:15,代碼來源:Host.class.php

示例11: handleData

 /**
  * @see DatabaseObject::handleData()
  */
 protected function handleData($data)
 {
     if (!isset($data['packageID'])) {
         throw new SystemException("unknown package id '" . $this->packageID . "'", 13013);
     }
     $this->packageID = $data['packageID'];
     $this->package = $data['package'];
     $this->name = $data['packageName'];
     $this->instanceNo = $data['instanceNo'];
     $this->description = $data['packageDescription'];
     $this->version = $data['packageVersion'];
     $this->date = $data['packageDate'];
     $this->url = $data['packageURL'];
     $this->parentPackageID = $data['parentPackageID'];
     $this->isUnique = $data['isUnique'];
     $this->standalone = $data['standalone'];
     $this->author = $data['author'];
     $this->authorURL = $data['authorURL'];
     $this->dir = $data['packageDir'];
     parent::handleData($data);
 }
開發者ID:CaribeSoy,項目名稱:contest-wcf,代碼行數:24,代碼來源:Package.class.php

示例12: handleData

 /**
  * @see DatabaseObject::handleData()
  */
 protected function handleData($data)
 {
     parent::handleData($data);
     $this->message = new EntryMessage(null, $data);
 }
開發者ID:0xLeon,項目名稱:com.leon.pokemon.cheatdatabase.core,代碼行數:8,代碼來源:Entry.class.php

示例13: handleData

 /**
  * @see DatabaseObject::handleData()
  */
 protected function handleData($data)
 {
     parent::handleData($data);
     foreach ($this->data as $key => $date) {
         if (strpos($date, '~wot:s:') === 0) {
             $this->data[$key] = unserialize(substr($date, 7));
         }
     }
 }
開發者ID:sonicmaster,項目名稱:RPG,代碼行數:12,代碼來源:WOTUserConfig.class.php

示例14: handleData

 /**
  * @see DatabaseObject::handleData()
  */
 protected function handleData($data)
 {
     parent::handleData($data);
     $this->owner = new ContestOwner($data, $this->userID, $this->groupID);
 }
開發者ID:CaribeSoy,項目名稱:contest-wcf,代碼行數:8,代碼來源:ContestTodo.class.php

示例15: handleData

 /**
  * @see DatabaseObject::handleData()
  */
 protected function handleData($data)
 {
     parent::handleData($data);
     if ($this->isViewable() == false) {
         $this->subject = WCF::getLanguage()->get('wcf.contest.subject.hidden');
         $this->message = WCF::getLanguage()->get('wcf.contest.message.hidden');
         $this->attachments = 0;
     }
 }
開發者ID:CaribeSoy,項目名稱:contest-wcf,代碼行數:12,代碼來源:Contest.class.php


注:本文中的DatabaseObject::handleData方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。