Archived
1
0
Fork 0
This repository has been archived on 2026-05-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
fiktivkod/application/models/Mapper/About.php
2010-11-16 19:12:45 +01:00

22 lines
No EOL
529 B
PHP

<?php
class Mapper_About extends Fiktiv_Model_Mapper_DbTableAbstract
{
public function getContent($locale = null)
{
if ($locale === null) {
$locale = 'se';
}
//$ad = new Zend_Db_Adapter_Abstract();
//$ad->fet
$adapter = $this->_dbTable->getAdapter();
$select = $adapter
->select()
->from('About', array('Title', 'Content'))
->where('Locale = ?', $locale);
return $adapter->fetchPairs($select);
}
}