[geeklog-cvs] Geeklog-2.x/models/dto/base BaseGl2TemplateReferenceDTO.php, NONE, 1.1
Tony Bibbs
tony at qs1489.pair.com
Wed Aug 8 15:06:14 EDT 2007
Update of /cvsroot/geeklog2/Geeklog-2.x/models/dto/base
In directory qs1489.pair.com:/tmp/cvs-serv11270/models/dto/base
Added Files:
BaseGl2TemplateReferenceDTO.php
Log Message:
Supports the Flexy pre-compile process
--- NEW FILE: BaseGl2TemplateReferenceDTO.php ---
<?php
/**
* DTO class for representing a row from the 'gl2_template_reference' table.
*
* This class was autogenerated by Phing on:
*
* Thu Jul 12 13:48:07 2007
*
* @package models.dto.base
*/
require_once 'models/Gl2TemplateReference.php';
abstract class BaseGl2TemplateReferenceDTO {
/**
* The value for the reference_id field.
* @var int
*/
public $reference_id;
/**
* The value for the item_id field.
* @var int
*/
public $item_id = 0;
/**
* The value for the template_location field.
* @var string
*/
public $template_location = '';
/**
* Get the [reference_id] column value.
*
* @return string
*/
public function getReferenceId() {
return $this->reference_id;
}
/**
* Get the [item_id] column value.
*
* @return string
*/
public function getItemId() {
return $this->item_id;
}
/**
* Get the [template_location] column value.
*
* @return string
*/
public function getTemplateLocation() {
return $this->template_location;
}
/**
* Set the value of [reference_id] column.
*
* @param string $v new value
* @return void
*/
public function setReferenceId($v) {
$this->reference_id = $v;
}
/**
* 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 [template_location] column.
*
* @param string $v new value
* @return void
*/
public function setTemplateLocation($v) {
$this->template_location = $v;
}
/**
* Returns a Gl2TemplateReference object populated with values from this class.
* NOTE: This method does not copy the collections associated with
* this Gl2TemplateReferenceDTO to the new Gl2TemplateReference.
* @return Gl2TemplateReference
*/
public function &toGl2TemplateReference() {
require_once 'models/Gl2TemplateReference.php';
$associatedClass = new Gl2TemplateReference();
$associatedClass->setReferenceId($this->getReferenceId());
$associatedClass->setItemId($this->getItemId());
$associatedClass->setTemplateLocation($this->getTemplateLocation());
return $associatedClass;
}
/**
* Returns a Gl2TemplateReferenceDTO object populated with values from
* the provided Gl2TemplateReference object.
* NOTE: This method does not copy the collections associated with
* the Gl2TemplateReference to the new Gl2TemplateReferenceDTO.
* @param Gl2TemplateReference The class to map a DTO object from.
* @return Gl2TemplateReferenceDTO
*/
public static function &fromGl2TemplateReference(Gl2TemplateReference $omObject) {
$ret = new Gl2TemplateReferenceDTO();
$ret->setReferenceId($omObject->getReferenceId());
$ret->setItemId($omObject->getItemId());
$ret->setTemplateLocation($omObject->getTemplateLocation());
return $ret;
}
} // BaseGl2TemplateReferenceDTO
More information about the geeklog-cvs
mailing list