beginCache and CDbCacheDependency

i have such CDbCacheDependency


public function GetTbCatalogDependency()

        {

            $dbDepend = new CDbCacheDependency("SELECT UPDATE_TIME FROM information_schema.tables WHERE TABLE_SCHEMA = :schema AND TABLE_NAME = :table");


            $dbName = explode(';', Yii::app()->db->connectionString); //mysql:host=$dbhost;dbname=$dbname

            $dbName = explode('=', $dbName[1]);

            $dbDepend->params = array(':schema'=>$dbName[1], ':table'=>$this->tableName());


            return $dbDepend;

        }

now i want to use

how can i combine it with GetTbCatalogDependency?




<?php if($this->beginCache($id, array('dependency'=>$this->GetTbCatalogDependency()))) { ?>