class filedepotTagCloud in filedepot 7
Same name and namespace in other branches
- 6 nexcloud.class.php \filedepotTagCloud
Hierarchy
- class \nexcloud
- class \filedepotTagCloud
Expanded class hierarchy of filedepotTagCloud
File
- ./
nexcloud.class.php, line 555 - nexcloud.class.php Tag Cloud class for the filedepot module
View source
class filedepotTagCloud extends nexcloud {
function __construct() {
parent::__construct();
$this->_type = 'filedepot';
}
/* For each file in this folder with tagwords - update the metrics per access permission */
function update_accessmetrics($cid, $tagids = '') {
$query = db_select('nextag_items', 'a');
$query
->join('filedepot_files', 'b', 'b.fid = a.itemid');
$query
->fields('a', array(
'itemid',
));
$query
->condition('b.cid', $cid, '=');
$results = $query
->execute();
foreach ($results as $record) {
parent::update_accessmetrics($record->itemid, $tagids = '');
}
}
}