コード例 #1
0
ファイル: file.php プロジェクト: nbourguig/concrete5
	public static function getByID($akID) {
		$fak = Cache::get('file_attribute_key', $akID);
		if (is_object($fak)) {
			return $fak;
		}
		
		$ak = new FileAttributeKey();
		$ak->load($akID);
		if ($ak->getAttributeKeyID() > 0) {
			Cache::set('file_attribute_key', $akID, $ak);
			return $ak;	
		}	
	}
コード例 #2
0
ファイル: file.php プロジェクト: Zyqsempai/amanet
 public static function getByID($akID)
 {
     $ak = new FileAttributeKey();
     $ak->load($akID);
     if ($ak->getAttributeKeyID() > 0) {
         return $ak;
     }
 }