コード例 #1
0
ファイル: GroupRoleGen.class.php プロジェクト: alcf/chms
 /**
  * Gets the historical journal for an object from the log database.
  * Objects will have VirtualAttributes available to lookup login, date, and action information from the journal object.
  * @param integer intId
  * @return GroupRole[]
  */
 public static function GetJournalForId($intId)
 {
     $objDatabase = GroupRole::GetDatabase()->JournalingDatabase;
     $objResult = $objDatabase->Query('SELECT * FROM group_role WHERE id = ' . $objDatabase->SqlVariable($intId) . ' ORDER BY __sys_date');
     return GroupRole::InstantiateDbResult($objResult);
 }