FileStore::get PHP Method

get() public method

读取
public get ( string $key, boolean $use_cache = true ) : Ambigous
$key string
$use_cache boolean
return Ambigous
    public function get($key, $use_cache = true)
    {
        $ret = @file_get_contents(\Config\Store::$storePath . '/' . $key);
        return $ret ? unserialize($ret) : null;
    }

Usage Example

コード例 #1
0
ファイル: Database.php プロジェクト: vojtajina/sitellite
 function _getBinary($collection, $id, $field)
 {
     loader_import('saf.File.Store');
     $fs = new FileStore($this->filestore_path);
     $data = $fs->get($id . '_' . $field . '_' . $collection);
     if (!$data) {
         $this->error = $fs->error;
         return false;
     }
     return $data;
 }
All Usage Examples Of FileStore::get