Esempio n. 1
0
 public function testInsertCulture()
 {
     $this->objCulture->setDefault(false);
     $this->objCulture->setIsoLang('es_ES');
     $this->objCulture->save();
     /* @var $obj Culture */
     $obj = CulturePeer::retriveByPk('es_ES');
     $test = $obj->getIsoLang();
     $obj->delete();
     $this->assertEquals('es_ES', $test);
 }
Esempio n. 2
0
 /**
  * 
  * @param $isoLang
  * @return boollean
  */
 public function hasCulture($isoLang)
 {
     $has = CulturePeer::hasCulture($isoLang);
     return $has;
 }