X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=DataObjects%2FI18n.php;h=ba3386f75113ba9a028b3e52b5ec4ad4bbf3f9d7;hb=b66a2cb9fd3ac855b09245f03d174c4eb93c20c1;hp=4d9ab616b3abb6cb521a8b4fb86614cd5c94ba2d;hpb=ca4761f3d6530b562525feec940a63c82cf45dc9;p=Pman.Core diff --git a/DataObjects/I18n.php b/DataObjects/I18n.php index 4d9ab616..ba3386f7 100644 --- a/DataObjects/I18n.php +++ b/DataObjects/I18n.php @@ -220,6 +220,14 @@ class Pman_Core_DataObjects_I18n extends DB_DataObject } + function codeExists($ltype, $key) + { + $x = DB_DataObject::factory('i18n'); + $x->ltype = $ltype; + $x->lkey = $key; + return $x->count() ? true : false; + } + // load all all to reduce future queries.. function translateCache($inlang, $ltype, $build) {