Prado\Data\SqlMap\Configuration\TSqlMapCacheModel::getID PHP Method

getID() public method

public getID ( ) : string
return string unique cache model identifier.
    public function getID()
    {
        return $this->_id;
    }

Usage Example

コード例 #1
0
ファイル: TSqlMapManager.php プロジェクト: pradosoft/prado
 /**
  * Adds a named cache.
  * @param TSqlMapCacheModel the cache to add.
  * @throws TSqlMapConfigurationException
  */
 public function addCacheModel(TSqlMapCacheModel $cacheModel)
 {
     if ($this->_cacheModels->contains($cacheModel->getID())) {
         throw new TSqlMapConfigurationException('sqlmap_cache_model_already_exists', $cacheModel->getID());
     } else {
         $this->_cacheModels->add($cacheModel->getID(), $cacheModel);
     }
 }