コード例 #1
0
ファイル: Hashes.php プロジェクト: alexukua/opus4
 public function populateFromModel($file)
 {
     foreach ($file->getHashValue() as $hashValue) {
         $hash = new Admin_Model_Hash($file, $hashValue);
         $hashType = $hash->getHashType();
         if (!empty($hashType)) {
             $signType = $hash->getSignatureType();
             switch ($signType) {
                 case 'gpg':
                     break;
                 default:
                     $this->addHashElement($file, $hashValue);
                     break;
             }
         }
     }
 }