Permalink
Browse files

save

  • Loading branch information...
KellyLSB committed Mar 8, 2012
1 parent 3aebf5a commit 1a8a4b863650d80736755027e64e880444dd34ea
Showing with 6 additions and 0 deletions.
  1. +6 −0 extend/sql/library/extensions/taxonomy.php
@@ -93,6 +93,12 @@ public function modelHasTag(Model $model, $map = false) {
else return true;
}
+ public function modelListTags(Model $model) {
+ $tagTable = "\$tags ".$model->__getTable();
+
+ return e::$sql->query("SELECT * FROM `$tagTable` WHERE `owner` = '$model->id' ORDER BY `updated_timestamp` DESC")->all();
+ }
+
public function listHasTag(ListObj $list) {
$args = func_get_args();
array_shift($args);

0 comments on commit 1a8a4b8

Please sign in to comment.