X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fmodels%2FPathMapper.php;h=7d514e9f655a9ffac7c746f11cef451838468a52;hp=7f43e2239b64bae6d1187c9ea1c44f6571d77059;hb=9f80d909c85ea324ed3337348b6e83ec39b70a78;hpb=6a642fc4ff9526efe4ac180e53f356be79235c62 diff --git a/application/models/PathMapper.php b/application/models/PathMapper.php index 7f43e22..7d514e9 100644 --- a/application/models/PathMapper.php +++ b/application/models/PathMapper.php @@ -35,6 +35,12 @@ class Syj_Model_PathMapper return $this->_fetchItem($select, $path); } + public function findByTitle($title, Syj_Model_Path $path) { + $select = $this->_select(); + $select->where('title = ?', (string)$title); + return $this->_fetchItem($select, $path); + } + public function findByUrl($url, Syj_Model_Path $path) { $select = $this->_select(); $select->where('id = ?', (int)$url)->orWhere('urlcomp = ?', (string)$url);