/** * Get the ID of a normalized tag * * @param string $tag Normalized tag * @return mixed False if errors, integer on success */ private function _getTagId($tag) { if (!isset($tag)) { $this->setError(__CLASS__ . '::' . __METHOD__ . ' - Tag argument missing.'); return false; } $t = new Tables\Tag($this->_db); $t->loadTag($this->normalize($tag)); return $t->id; }