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


PHP DatabaseObject::DatabaseObject方法代码示例

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


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

示例1: EvaluationObjectDB

 /**
  * Constructor
  * @access   public
  */
 function EvaluationObjectDB()
 {
     /* Set default values -------------------------------------------------- */
     parent::DatabaseObject();
     $this->instanceof = INSTANCEOF_EVALDBOBJECT;
     /* --------------------------------------------------------------------- */
 }
开发者ID:ratbird,项目名称:hope,代码行数:11,代码来源:EvaluationObjectDB.class.php

示例2: Publication

 /**
  * A publication represents a magazine or newspaper.
  *
  * This class is mainly responsible for specifying
  * publication-wide configuration parameters.
  *
  * @param int $p_publicationId
  */
 public function Publication($p_publicationId = null)
 {
     parent::DatabaseObject($this->m_columnNames);
     $this->m_data['Id'] = $p_publicationId;
     if ($this->keyValuesExist()) {
         $this->fetch();
     }
 }
开发者ID:nidzix,项目名称:Newscoop,代码行数:16,代码来源:Publication.php

示例3: UrlType

 /**
  * Constructor.
  * @param int $p_id
  */
 public function UrlType($p_id = null)
 {
     parent::DatabaseObject($this->m_columnNames);
     if (!is_null($p_id)) {
         $this->m_data['Id'] = $p_id;
         $this->fetch();
     }
 }
开发者ID:nidzix,项目名称:Newscoop,代码行数:12,代码来源:UrlType.php

示例4: Language

 /**
  * Constructor.
  * @param int $p_languageId
  */
 public function Language($p_languageId = null)
 {
     parent::DatabaseObject($this->m_columnNames);
     if (!is_null($p_languageId)) {
         $this->m_data['Id'] = $p_languageId;
         $this->fetch();
     }
 }
开发者ID:nidzix,项目名称:Newscoop,代码行数:12,代码来源:Language.php

示例5: Image

	/**
	 * An image is both the orginal image, plus a thumbnail image,
	 * plus metadata.
	 *
	 * @param int $p_imageId
	 */
	public function Image($p_imageId = null)
	{
		parent::DatabaseObject($this->m_columnNames);
		$this->m_data['Id'] = $p_imageId;
		if ($this->keyValuesExist()) {
			$this->fetch();
		}
	} // constructor
开发者ID:nistormihai,项目名称:Newscoop,代码行数:14,代码来源:Image.php

示例6: IssuePublish

 /**
  * This table delays an issue's publish time to a later date.
  *
  * @param int $p_id
  */
 public function IssuePublish($p_id = null)
 {
     parent::DatabaseObject($this->m_columnNames);
     $this->m_data['id'] = $p_id;
     if ($this->keyValuesExist()) {
         $this->fetch();
     }
 }
开发者ID:sourcefabric,项目名称:newscoop,代码行数:13,代码来源:IssuePublish.php

示例7: Blog

    /**
	 * Construct by passing in the primary key to access the article in
	 * the database.
	 *
	 * @param int $p_languageId
	 * @param int $p_articleNumber
	 *		Not required when creating an article.
	 */
    function Blog($p_blog_id = null)
    {
        parent::DatabaseObject($this->m_columnNames);
        $this->m_data['blog_id'] = $p_blog_id;
        if ($this->keyValuesExist()) {
            $this->fetch();
            $this->m_data['images'] = BlogImageHelper::GetImagePaths('blog', $p_blog_id, true, true);
        }
    } // constructor
开发者ID:nistormihai,项目名称:Newscoop,代码行数:17,代码来源:Blog.php

示例8: Country

	/**
	 * Constructor.
	 * @param string $p_code
	 * @param int $p_languageId
	 */
	public function Country($p_code = null, $p_languageId = null)
	{
		parent::DatabaseObject($this->m_columnNames);
		$this->m_data['Code'] = $p_code;
		$this->m_data['IdLanguage'] = $p_languageId;
		if ($this->keyValuesExist()) {
			$this->fetch();
		}
	} // constructor
开发者ID:nistormihai,项目名称:Newscoop,代码行数:14,代码来源:Country.php

示例9: Poll

 /**
  * Construct by passing in the primary key to access the poll in
  * the database.
  *
  * @param int $p_language_id
  *        Not required if poll_nr is given.
  * @param int $p_poll_nr
  *        Not required when creating an poll.
  */
 public function Poll($p_language_id = null, $p_poll_nr = null)
 {
     parent::DatabaseObject($this->m_columnNames);
     $this->m_data['fk_language_id'] = $p_language_id;
     $this->m_data['poll_nr'] = $p_poll_nr;
     if ($this->keyValuesExist()) {
         $this->fetch();
     }
 }
开发者ID:nidzix,项目名称:Newscoop,代码行数:18,代码来源:Poll.php

示例10: DebatePublication

 /**
  * Construct by passing in the primary key to access the
  * debate <-> publication relations
  *
  * @param int $p_debate_nr
  * @param int $p_publication_id
  */
 function DebatePublication($p_debate_nr = null, $p_publication_id = null)
 {
     parent::DatabaseObject($this->m_columnNames);
     $this->m_data['fk_debate_nr'] = $p_debate_nr;
     $this->m_data['fk_publication_id'] = $p_publication_id;
     if ($this->keyValuesExist()) {
         $this->fetch();
     }
 }
开发者ID:nidzix,项目名称:Newscoop,代码行数:16,代码来源:DebatePublication.php

示例11: Soundcloud

 public function Soundcloud($p_article_id = null, $p_track_id = null)
 {
     parent::DatabaseObject($this->m_columnNames);
     $this->m_data['article_id'] = $p_article_id;
     $this->m_data['track_id'] = $p_track_id;
     if ($this->keyValuesExist()) {
         $this->fetch();
     }
 }
开发者ID:nidzix,项目名称:Newscoop,代码行数:9,代码来源:Soundcloud.php

示例12: SubscriptionDefaultTime

 	public function SubscriptionDefaultTime($p_countryCode = null, $p_publicationId = null)
 	{
 		parent::DatabaseObject($this->m_columnNames);
 		$this->m_data['CountryCode'] = $p_countryCode;
 		$this->m_data['IdPublication'] = $p_publicationId;
 		if ($this->keyValuesExist()) {
 			$this->fetch();
 		}
 	} // constructor
开发者ID:nistormihai,项目名称:Newscoop,代码行数:9,代码来源:SubscriptionDefaultTime.php

示例13: Phorum_forum

	public function Phorum_forum($p_forumId = null)
	{
		global $PHORUM;
		$this->m_dbTableName = $PHORUM['forums_table'];
		parent::DatabaseObject($this->m_columnNames);
		$this->m_data['forum_id'] = $p_forumId;
		if (!is_null($p_forumId)) {
			$this->fetch();
		}
	} // constructor
开发者ID:nistormihai,项目名称:Newscoop,代码行数:10,代码来源:Phorum_forum.php

示例14: UserType

 /**
  * Constructor
  *
  * @param string
  *    $p_userTypeId (optional) The user type identifier
  *
  * @return void
  */
 public function UserType($p_userTypeId = null)
 {
     parent::DatabaseObject($this->m_columnNames);
     if (is_numeric($p_userTypeId) && $p_userTypeId > 0) {
         $this->m_data['group_id'] = $p_userTypeId;
         if ($this->keyValuesExist()) {
             $this->fetch();
         }
     }
 }
开发者ID:nidzix,项目名称:Newscoop,代码行数:18,代码来源:UserType.php

示例15: DebateAnswerAttachment

 /**
  * Construct by passing in the primary key to access the
  * debateanswer <-> attachment relations
  *
  * @param int $p_debate_nr
  * @param int $p_article_language_id
  * @param int $p_article_nr
  */
 function DebateAnswerAttachment($p_debate_nr = null, $p_debateanswer_nr = null, $p_attachment_id = null)
 {
     parent::DatabaseObject($this->m_columnNames);
     $this->m_data['fk_debate_nr'] = $p_debate_nr;
     $this->m_data['fk_debateanswer_nr'] = $p_debateanswer_nr;
     $this->m_data['fk_attachment_id'] = $p_attachment_id;
     if ($this->keyValuesExist()) {
         $this->fetch();
     }
 }
开发者ID:nidzix,项目名称:Newscoop,代码行数:18,代码来源:DebateAnswerAttachment.php


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