当前位置: 首页>>代码示例>>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;未经允许,请勿转载。