home
api
develop
badge
wallpaper
rhaco.org
PHP library & setup framework
lingr
bugs
jaja
arbo
rhaco_1_x
jaja rev. 266
branches/pond/library/model/table/CommitLogTable.php
diffの実装
266: diffの実装
263: DBの設計変更
258:
255: ソースビューに対応
249: project.xml定義の変更
245: マルチレポに対応したレイアウトに修正
243: svnをマルチ対応に修正
241: 初期インポート。
__init__($id); } function __init__($id=null){ $this->id = null; $this->repositoryId = null; $this->rev = null; $this->author = null; $this->commited = null; $this->comment = null; $this->added = null; $this->modified = null; $this->deleted = null; $this->setId($id); } function connection(){ if(!Rhaco::isVariable("_R_D_CON_","pond")){ Rhaco::addVariable("_R_D_CON_",new DbConnection("pond"),"pond"); } return Rhaco::getVariable("_R_D_CON_",null,"pond"); } function table(){ if(!Rhaco::isVariable("_R_D_T_","CommitLog")){ Rhaco::addVariable("_R_D_T_",new Table(Rhaco::constant("DATABASE_pond_PREFIX")."commit_log",__CLASS__),"CommitLog"); } return Rhaco::getVariable("_R_D_T_",null,"CommitLog"); } /** * * @return database.model.Column */ function columnId(){ if(!Rhaco::isVariable("_R_D_C_","CommitLog::Id")){ $column = new Column("column=id,variable=id,type=serial,size=22,primary=true,",__CLASS__); $column->label(Message::_("id")); $column->depend("Source::LogId","SourceEx::LogId"); Rhaco::addVariable("_R_D_C_",$column,"CommitLog::Id"); } return Rhaco::getVariable("_R_D_C_",null,"CommitLog::Id"); } /** * * @return serial */ function setId($value){ $this->id = TableObjectUtil::cast($value,"serial"); } /** * */ function getId(){ return $this->id; } /** * * @return database.model.Column */ function columnRepositoryId(){ if(!Rhaco::isVariable("_R_D_C_","CommitLog::RepositoryId")){ $column = new Column("column=repository_id,variable=repositoryId,type=integer,size=22,reference=Repository::Id,",__CLASS__); $column->label(Message::_("repository_id")); Rhaco::addVariable("_R_D_C_",$column,"CommitLog::RepositoryId"); } return Rhaco::getVariable("_R_D_C_",null,"CommitLog::RepositoryId"); } /** * * @return integer */ function setRepositoryId($value){ $this->repositoryId = TableObjectUtil::cast($value,"integer"); } /** * */ function getRepositoryId(){ return $this->repositoryId; } /** * * @return database.model.Column */ function columnRev(){ if(!Rhaco::isVariable("_R_D_C_","CommitLog::Rev")){ $column = new Column("column=rev,variable=rev,type=integer,size=22,unique=true,uniqueWith=CommitLog::RepositoryId,",__CLASS__); $column->label(Message::_("rev")); Rhaco::addVariable("_R_D_C_",$column,"CommitLog::Rev"); } return Rhaco::getVariable("_R_D_C_",null,"CommitLog::Rev"); } /** * * @return integer */ function setRev($value){ $this->rev = TableObjectUtil::cast($value,"integer"); } /** * */ function getRev(){ return $this->rev; } /** * * @return database.model.Column */ function columnAuthor(){ if(!Rhaco::isVariable("_R_D_C_","CommitLog::Author")){ $column = new Column("column=author,variable=author,type=string,",__CLASS__); $column->label(Message::_("author")); Rhaco::addVariable("_R_D_C_",$column,"CommitLog::Author"); } return Rhaco::getVariable("_R_D_C_",null,"CommitLog::Author"); } /** * * @return string */ function setAuthor($value){ $this->author = TableObjectUtil::cast($value,"string"); } /** * */ function getAuthor(){ return $this->author; } /** * * @return database.model.Column */ function columnCommited(){ if(!Rhaco::isVariable("_R_D_C_","CommitLog::Commited")){ $column = new Column("column=commited,variable=commited,type=timestamp,",__CLASS__); $column->label(Message::_("commited")); Rhaco::addVariable("_R_D_C_",$column,"CommitLog::Commited"); } return Rhaco::getVariable("_R_D_C_",null,"CommitLog::Commited"); } /** * * @return timestamp */ function setCommited($value){ $this->commited = TableObjectUtil::cast($value,"timestamp"); } /** * */ function getCommited(){ return $this->commited; } /** */ function formatCommited($format="Y/m/d H:i:s"){ return DateUtil::format($this->commited,$format); } /** * * @return database.model.Column */ function columnComment(){ if(!Rhaco::isVariable("_R_D_C_","CommitLog::Comment")){ $column = new Column("column=comment,variable=comment,type=text,",__CLASS__); $column->label(Message::_("comment")); Rhaco::addVariable("_R_D_C_",$column,"CommitLog::Comment"); } return Rhaco::getVariable("_R_D_C_",null,"CommitLog::Comment"); } /** * * @return text */ function setComment($value){ $this->comment = TableObjectUtil::cast($value,"text"); } /** * */ function getComment(){ return $this->comment; } /** * * @return database.model.Column */ function columnAdded(){ if(!Rhaco::isVariable("_R_D_C_","CommitLog::Added")){ $column = new Column("column=added,variable=added,type=text,",__CLASS__); $column->label(Message::_("added")); Rhaco::addVariable("_R_D_C_",$column,"CommitLog::Added"); } return Rhaco::getVariable("_R_D_C_",null,"CommitLog::Added"); } /** * * @return text */ function setAdded($value){ $this->added = TableObjectUtil::cast($value,"text"); } /** * */ function getAdded(){ return $this->added; } /** * * @return database.model.Column */ function columnModified(){ if(!Rhaco::isVariable("_R_D_C_","CommitLog::Modified")){ $column = new Column("column=modified,variable=modified,type=text,",__CLASS__); $column->label(Message::_("modified")); Rhaco::addVariable("_R_D_C_",$column,"CommitLog::Modified"); } return Rhaco::getVariable("_R_D_C_",null,"CommitLog::Modified"); } /** * * @return text */ function setModified($value){ $this->modified = TableObjectUtil::cast($value,"text"); } /** * */ function getModified(){ return $this->modified; } /** * * @return database.model.Column */ function columnDeleted(){ if(!Rhaco::isVariable("_R_D_C_","CommitLog::Deleted")){ $column = new Column("column=deleted,variable=deleted,type=text,",__CLASS__); $column->label(Message::_("deleted")); Rhaco::addVariable("_R_D_C_",$column,"CommitLog::Deleted"); } return Rhaco::getVariable("_R_D_C_",null,"CommitLog::Deleted"); } /** * * @return text */ function setDeleted($value){ $this->deleted = TableObjectUtil::cast($value,"text"); } /** * */ function getDeleted(){ return $this->deleted; } function getFactRepositoryId(){ return $this->factRepositoryId; } function setFactRepositoryId($obj){ $this->factRepositoryId = $obj; } function setDependSources($value){ $this->dependSources = $value; } function getDependSources(){ return $this->dependSources; } function setDependSourceExs($value){ $this->dependSourceExs = $value; } function getDependSourceExs(){ return $this->dependSourceExs; } } ?>