* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $ */ class JobStyle extends BaseJobStyle { const STANDARD = 1; const HIGHLIGHT = 2; const TOP = 3; public function getPriceRelation(Country $country) { return Doctrine::getTable('JobStylePrice')->createQuery() ->addWhere('style_id = ?', $this->getId()) ->addWhere('country_id = ?', $country->getId()) ->fetchOne(); } public function getShortName() { return trim(substr($this->getName(), 0, 4)).'.'; } }