本文整理汇总了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;
}
}
示例2: handleData
/**
* @see DatabaseObject::handleData()
*/
protected function handleData($data)
{
parent::handleData($data);
if (!$this->serverID) {
$this->data['serverID'] = 0;
}
}
示例3: handleData
/**
* @see DatabaseObject::handleData()
*/
protected function handleData($data)
{
parent::handleData($data);
if (!$this->entryID) {
$this->data['entryID'] = 0;
}
}
示例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();
}
}
示例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);
}
}
示例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));
}
示例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();
}
}
示例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']);
}
}
示例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;
}
示例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;
}
}
示例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);
}
示例12: handleData
/**
* @see DatabaseObject::handleData()
*/
protected function handleData($data)
{
parent::handleData($data);
$this->message = new EntryMessage(null, $data);
}
示例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));
}
}
}
示例14: handleData
/**
* @see DatabaseObject::handleData()
*/
protected function handleData($data)
{
parent::handleData($data);
$this->owner = new ContestOwner($data, $this->userID, $this->groupID);
}
示例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;
}
}