本文整理汇总了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;
/* --------------------------------------------------------------------- */
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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
示例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();
}
}
示例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
示例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
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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
示例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
示例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();
}
}
}
示例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();
}
}