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


PHP parent::object方法代码示例

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


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

示例1: selectByItemId

 public static function selectByItemId($intId)
 {
     global $_CONF;
     parent::$object = "StorageData";
     parent::$table = "pcms_storage_data";
     $strSql = sprintf("SELECT * FROM " . parent::$table . " WHERE itemId = '%s'", $intId);
     return parent::select($strSql);
 }
开发者ID:laiello,项目名称:punchcms,代码行数:8,代码来源:class.storagedata.php

示例2: select

 public static function select($strSql = "")
 {
     global $_CONF;
     parent::$object = "ContentLanguage";
     parent::$table = "pcms_language";
     if (empty($strSql)) {
         $strSql = sprintf("SELECT * FROM " . parent::$table . " WHERE accountId = '%s' ORDER BY sort", $_CONF['app']['account']->getId());
     }
     return parent::select($strSql);
 }
开发者ID:laiello,项目名称:punchcms,代码行数:10,代码来源:class.contentlanguage.php

示例3: save

 public function save($blnSaveModifiedDate = TRUE)
 {
     parent::$object = "Template";
     parent::$table = "pcms_template";
     $intId = $this->getId();
     $blnReturn = parent::save($blnSaveModifiedDate);
     if (class_exists("AuditLog")) {
         AuditLog::addLog(AUDIT_TYPE_TEMPLATE, $this->getId(), $this->getName(), empty($intId) ? "create" : "edit");
     }
     return $blnReturn;
 }
开发者ID:laiello,项目名称:punchcms,代码行数:11,代码来源:class.template.php

示例4: selectByAlias

 public static function selectByAlias($strAlias)
 {
     global $_CONF;
     parent::$object = "Alias";
     parent::$table = "pcms_alias";
     $objReturn = null;
     if (!empty($strAlias)) {
         $strSql = sprintf("SELECT * FROM " . parent::$table . " WHERE accountId = '%s' AND alias = %s ORDER BY sort", $_CONF['app']['account']->getId(), parent::quote($strAlias));
         $objReturn = parent::select($strSql);
     }
     return $objReturn;
 }
开发者ID:laiello,项目名称:punchcms,代码行数:12,代码来源:class.alias.php

示例5: getItems

 public function getItems($intTypeId = STORAGE_TYPE_ALL)
 {
     global $_CONF;
     parent::$object = "StorageItem";
     parent::$table = "pcms_storage_item";
     $strSql = sprintf("SELECT * FROM " . parent::$table . " WHERE parentId = '%s' AND typeId IN (%s) AND accountId = '%s' ORDER BY sort", $this->getId(), $intTypeId, $_CONF['app']['account']->getId());
     return parent::select($strSql);
 }
开发者ID:laiello,项目名称:punchcms,代码行数:8,代码来源:class.storageitem.php

示例6: save

 public function save($blnSaveModifiedDate = TRUE, $blnCreateForced = TRUE)
 {
     parent::$object = "Element";
     parent::$table = "pcms_element";
     $intId = $this->getId();
     $blnReturn = parent::save($blnSaveModifiedDate);
     if (class_exists("AuditLog")) {
         AuditLog::addLog(AUDIT_TYPE_ELEMENT, $this->getId(), $this->getName(), empty($intId) ? "create" : "edit", $this->getActive() ? "active" : "inactive");
     }
     //*** Save permissions.
     if (is_object($this->objPermissions)) {
         $this->clearPermissions();
         $this->objPermissions->setElementId($this->id);
         $this->objPermissions->save();
     }
     //*** Create forced children.
     if (empty($intId) && $blnCreateForced) {
         $this->createForcedElements();
     }
     return $blnReturn;
 }
开发者ID:laiello,项目名称:punchcms,代码行数:21,代码来源:class.element.php


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