コード例 #1
0
ファイル: File.php プロジェクト: ratibus/Crew
 public function setCommitInfos($commitInfos)
 {
     $explodedInfos = strlen($commitInfos) > 0 ? explode(' ', $commitInfos, 2) : array();
     if (count($explodedInfos) == 2) {
         $this->setLastChangeCommitDesc($explodedInfos[1]);
         $profile = ProfilePeer::getProfileByEmail($explodedInfos[0]);
         if ($profile) {
             $this->setLastChangeCommitUser($profile->getSfGuardUserId());
         }
     }
     return $this;
 }