コード例 #1
0
 protected function fillObject($data, $noassoc)
 {
     $object = parent::fillObject($data, $noassoc);
     $host = '<a href="http://' . $object->getHost() . '" target="_blank">Host</a>';
     $url = '<a href="http://' . $object->getHost() . $object->getUrl() . '" target="_blank">Url</a>';
     $object->setGoto($host . ' | ' . $url);
     return $object;
 }
コード例 #2
0
 protected function fillObject($data, $noassoc = false)
 {
     $object = parent::fillObject($data, $noassoc);
     $object->setFnaam_pat(iconv("ISO-8859-15", "UTF-8", $object->getFnaam_pat()));
     $object->setVnaam_pat(iconv("ISO-8859-15", "UTF-8", $object->getVnaam_pat()));
     $object->setFnaam_dok(iconv("ISO-8859-15", "UTF-8", $object->getFnaam_dok()));
     $object->setVnaam_dok(iconv("ISO-8859-15", "UTF-8", $object->getVnaam_dok()));
     return $object;
 }
コード例 #3
0
 public function delete($conditions = array())
 {
     $cur = $this->get($conditions);
     foreach ($cur as $curlink) {
         $cond = array('order' => array('mode' => '>', 'value' => $curlink->getOrder()));
         $idcond = array('sectionid' => array('mode' => '=', 'value' => $curlink->getSectionid()));
         $links = $this->get(array('AND' => array($cond, $idcond)));
         try {
             foreach ($links as $link) {
                 $link->setOrder($link->getOrder() - 1);
                 $this->save($link);
             }
         } catch (Exception $e) {
             throw new deleteException($e->getMessage());
         }
     }
     parent::delete($conditions);
 }