當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。