Exemple #1
0
 /**
  * @return Zend_Db_Table_Row
  */
 protected function _getBlock()
 {
     if (NULL === $this->block) {
         $modelBlock = new Z_Model_Geo_Blocks();
         $this->block = $modelBlock->fetchRow(array('start<=?' => $this->ip, 'stop>=?' => $this->ip));
         if (!$this->block) {
             $this->block = $modelBlock->fetchRow();
         }
     }
     return $this->block;
 }