blob: 8486b22e17360ac594971524933578fefbf8c25b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
/*
* Created on May 24, 2009
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
class TagStat extends AppModel {
var $name = 'TagStat';
var $useTable = 'tag_stat';
var $belongsTo = array('Tag');
var $recursive = -1;
var $primaryKey = 'tag_id';
function deleteForTag($tag_id) {
$this->execute("DELETE FROM tag_stat WHERE tag_id = {$tag_id}");
}
}
?>
|