[geeklog-cvs] Geeklog-2.x/plugins/content/models/dto/base BaseGl2ContentDTO.php, NONE, 1.1
Damien Hodgkin
dhodgkin at qs1489.pair.com
Wed Aug 8 16:19:28 EDT 2007
Update of /cvsroot/geeklog2/Geeklog-2.x/plugins/content/models/dto/base
In directory qs1489.pair.com:/tmp/cvs-serv13664/plugins/content/models/dto/base
Added Files:
BaseGl2ContentDTO.php
Log Message:
Second commit
--- NEW FILE: BaseGl2ContentDTO.php ---
<?php
/**
* DTO class for representing a row from the 'gl2_content' table.
*
* This class was autogenerated by Phing on:
*
* Fri Jul 27 14:15:21 2007
*
* @package plugins.content.models.dto.base
*/
require_once 'plugins/content/models/Gl2Content.php';
abstract class BaseGl2ContentDTO {
/**
* The value for the item_id field.
* @var int
*/
public $item_id = 0;
/**
* The value for the content_id field.
* @var int
*/
public $content_id;
/**
* The value for the content_author field.
* @var string
*/
public $content_author = '';
/**
* The value for the content_title field.
* @var string
*/
public $content_title = '';
/**
* The value for the description field.
* @var string
*/
public $description;
/**
* The value for the content_body field.
* @var string
*/
public $content_body;
/**
* The value for the content_url field.
* @var string
*/
public $content_url = '';
/**
* The value for the content_type field.
* @var int
*/
public $content_type = 0;
/**
* The value for the num_clicks field.
* @var int
*/
public $num_clicks = 0;
/**
* Get the [item_id] column value.
*
* @return string
*/
public function getItemId() {
return $this->item_id;
}
/**
* Get the [content_id] column value.
*
* @return string
*/
public function getContentId() {
return $this->content_id;
}
/**
* Get the [content_author] column value.
*
* @return string
*/
public function getContentAuthor() {
return $this->content_author;
}
/**
* Get the [content_title] column value.
*
* @return string
*/
public function getContentTitle() {
return $this->content_title;
}
/**
* Get the [description] column value.
*
* @return string
*/
public function getDescription() {
return $this->description;
}
/**
* Get the [content_body] column value.
*
* @return string
*/
public function getContentBody() {
return $this->content_body;
}
/**
* Get the [content_url] column value.
*
* @return string
*/
public function getContentUrl() {
return $this->content_url;
}
/**
* Get the [content_type] column value.
*
* @return string
*/
public function getContentType() {
return $this->content_type;
}
/**
* Get the [num_clicks] column value.
*
* @return string
*/
public function getNumClicks() {
return $this->num_clicks;
}
/**
* Set the value of [item_id] column.
*
* @param string $v new value
* @return void
*/
public function setItemId($v) {
$this->item_id = $v;
}
/**
* Set the value of [content_id] column.
*
* @param string $v new value
* @return void
*/
public function setContentId($v) {
$this->content_id = $v;
}
/**
* Set the value of [content_author] column.
*
* @param string $v new value
* @return void
*/
public function setContentAuthor($v) {
$this->content_author = $v;
}
/**
* Set the value of [content_title] column.
*
* @param string $v new value
* @return void
*/
public function setContentTitle($v) {
$this->content_title = $v;
}
/**
* Set the value of [description] column.
*
* @param string $v new value
* @return void
*/
public function setDescription($v) {
$this->description = $v;
}
/**
* Set the value of [content_body] column.
*
* @param string $v new value
* @return void
*/
public function setContentBody($v) {
$this->content_body = $v;
}
/**
* Set the value of [content_url] column.
*
* @param string $v new value
* @return void
*/
public function setContentUrl($v) {
$this->content_url = $v;
}
/**
* Set the value of [content_type] column.
*
* @param string $v new value
* @return void
*/
public function setContentType($v) {
$this->content_type = $v;
}
/**
* Set the value of [num_clicks] column.
*
* @param string $v new value
* @return void
*/
public function setNumClicks($v) {
$this->num_clicks = $v;
}
/**
* Returns a Gl2Content object populated with values from this class.
* NOTE: This method does not copy the collections associated with
* this Gl2ContentDTO to the new Gl2Content.
* @return Gl2Content
*/
public function &toGl2Content() {
require_once 'plugins/content/models/Gl2Content.php';
$associatedClass = new Gl2Content();
$associatedClass->setItemId($this->getItemId());
$associatedClass->setContentId($this->getContentId());
$associatedClass->setContentAuthor($this->getContentAuthor());
$associatedClass->setContentTitle($this->getContentTitle());
$associatedClass->setDescription($this->getDescription());
$associatedClass->setContentBody($this->getContentBody());
$associatedClass->setContentUrl($this->getContentUrl());
$associatedClass->setContentType($this->getContentType());
$associatedClass->setNumClicks($this->getNumClicks());
return $associatedClass;
}
/**
* Returns a Gl2ContentDTO object populated with values from
* the provided Gl2Content object.
* NOTE: This method does not copy the collections associated with
* the Gl2Content to the new Gl2ContentDTO.
* @param Gl2Content The class to map a DTO object from.
* @return Gl2ContentDTO
*/
public static function &fromGl2Content(Gl2Content $omObject) {
$ret = new Gl2ContentDTO();
$ret->setItemId($omObject->getItemId());
$ret->setContentId($omObject->getContentId());
$ret->setContentAuthor($omObject->getContentAuthor());
$ret->setContentTitle($omObject->getContentTitle());
$ret->setDescription($omObject->getDescription());
$ret->setContentBody($omObject->getContentBody());
$ret->setContentUrl($omObject->getContentUrl());
$ret->setContentType($omObject->getContentType());
$ret->setNumClicks($omObject->getNumClicks());
return $ret;
}
} // BaseGl2ContentDTO
More information about the geeklog-cvs
mailing list