예제 #1
0
	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;
     }
 }