• FICHEIRO: /home2/nsomed/library/Zend/Db/Statement/Pdo.php
  • LINHA:    235
  • MENSAGEM: SQLSTATE[22003]: Numeric value out of range: 167 Out of range value for column 'id' at row 1, query was: INSERT INTO `banners_banner_pagina` (`banner_id`, `pagina_id`, `actualizado`, `criado`, `ip`) VALUES (?, ?, ?, ?, ?)
  •  231.             }
  •  232.         } catch (PDOException $e) {
  •  233.             require_once 'Zend/Db/Statement/Exception.php';
  •  234.             $message = sprintf('%s, query was: %s', $e->getMessage(), $this->_stmt->queryString);
  •  235.             throw new Zend_Db_Statement_Exception($message, (int) $e->getCode(), $e);
  •  236.         }
  •  237.     }
  •  238.
  •  239.     /**
  •  240.      * Fetches a row from the result set.

  • FICHEIRO: /home2/nsomed/library/Zend/Db/Statement.php
  • LINHA:    303
  •  299.         /*
  •  300.          * Simple case - no query profiler to manage.
  •  301.          */
  •  302.         if ($this->_queryId === null) {
  •  303.             return $this->_execute($params);
  •  304.         }
  •  305.
  •  306.         /*
  •  307.          * Do the same thing, but with query profiler
  •  308.          * management before and after the execute.

  • FICHEIRO: /home2/nsomed/library/Zend/Db/Adapter/Abstract.php
  • LINHA:    480
  •  476.         }
  •  477.
  •  478.         // prepare and execute the statement with profiling
  •  479.         $stmt = $this->prepare($sql);
  •  480.         $stmt->execute($bind);
  •  481.
  •  482.         // return the results embedded in the prepared statement object
  •  483.         $stmt->setFetchMode($this->_fetchMode);
  •  484.         return $stmt;
  •  485.     }

  • FICHEIRO: /home2/nsomed/library/Zend/Db/Adapter/Pdo/Abstract.php
  • LINHA:    238
  •  234.             }
  •  235.         }
  •  236.
  •  237.         try {
  •  238.             return parent::query($sql, $bind);
  •  239.         } catch (PDOException $e) {
  •  240.             /**
  •  241.              * @see Zend_Db_Statement_Exception
  •  242.              */
  •  243.             require_once 'Zend/Db/Statement/Exception.php';

  • FICHEIRO: /home2/nsomed/library/Zend/Db/Adapter/Abstract.php
  • LINHA:    576
  •  572.         // execute the statement and return the number of affected rows
  •  573.         if ($this->supportsParameters('positional')) {
  •  574.             $bind = array_values($bind);
  •  575.         }
  •  576.         $stmt = $this->query($sql, $bind);
  •  577.         $result = $stmt->rowCount();
  •  578.         return $result;
  •  579.     }
  •  580.
  •  581.     /**

  • FICHEIRO: /home2/nsomed/library/Goweb/Db/Model.php
  • LINHA:    1328
  •  1324.         if ($this->_row->{$this->_primaria} == null) {
  •  1325.             // não este, logo e um insert
  •  1326.             // efectua o insert, faz o refresh ao objecto e devolve o ID gerado
  •  1327.             $table = $this->_langs ? $this->_tablePrefix . '_' . preg_replace('/([^a-z0-9_])/i', '_', $this->_langs['0']) : $this->_table;
  •  1328.             if ($this->_db->insert($table, $data) > 0) {
  •  1329.                 $this->_row->{$this->_primaria} = $this->_db->lastInsertId();
  •  1330.                 $this->_refresh();
  •  1331.                 $this->_addToSearch($data, preg_replace('/([^a-z0-9_])/i', '_', $this->_langs['0']));
  •  1332.                 $data['id'] = $this->_row->{$this->_primaria};
  •  1333.                 if (count($foreignColMultiple) > 0){

  • FICHEIRO: /home2/nsomed/library/Goweb/Db/Model.php
  • LINHA:    1417
  •  1413.                             foreach ($valueMultiple as $categoria_id) {
  •  1414.                                 if ($categoria_id > 0){
  •  1415.                                     $modelMultiple->{$colMultiple2} = $this->_row->{$this->_primaria};
  •  1416.                                     $modelMultiple->{$colMultiple} = $categoria_id;
  •  1417.                                     $modelMultiple->save();
  •  1418.                                     $modelMultiple->reset();
  •  1419.                                 }
  •  1420.                             }
  •  1421.                         }
  •  1422.                     }

  • FICHEIRO: /home2/nsomed/application/Banners/GenericController.php
  • LINHA:    496
  •  492.     protected function _addViews($banner_id) {
  •  493.         $this->_bannerModel->loadForeigns(false);
  •  494.         if (($this->_validateId($banner_id)) && ($this->_bannerModel->find($banner_id)) && $this->_bannerModel->activo) {
  •  495.             $this->_bannerModel->views++;
  •  496.             $this->_bannerModel->save();
  •  497.         }
  •  498.     }
  •  499.
  •  500.     /**
  •  501.      * Acao executada se a acao chamada nao existir neste modulo

  • FICHEIRO: /home2/nsomed/application/Banners/Controller.php
  • LINHA:    188
  •  184.                         
  •  185.                         $id_banner = $linha['id'];
  •  186.
  •  187.                         //incrementa as visualizacoes para cada banner
  •  188.                         $this->_addViews($id_banner);
  •  189.
  •  190.                         //para cada coluna da tabela banners
  •  191.                         foreach ($this->_bannerModel->getColsNames() as $col) {
  •  192.                             //se a coluna for pagina_id, coloca no array o parametro recebido
  •  193.                             if ($col == 'pagina_id') {

  • FICHEIRO: /home2/nsomed/library/Goweb/Controller/Action.php
  • LINHA:    276
  •  272.                  */
  •  273.                 /*if ($this->getInvokeArg('useCaseSensitiveActions')) {
  •  274.                     trigger_error('Using case sensitive actions without word separators is deprecated; please do not rely on this "feature"');
  •  275.                 }*/
  •  276.                 $this->$action();
  •  277.             } else {
  •  278.                 $this->__call($action, array());
  •  279.             }
  •  280.             $this->postDispatch();
  •  281.         }

  • FICHEIRO: /home2/nsomed/library/Zend/Controller/Dispatcher/Standard.php
  • LINHA:    308
  •  304.             ob_start();
  •  305.         }
  •  306.
  •  307.         try {
  •  308.             $controller->dispatch($action);
  •  309.         } catch (Exception $e) {
  •  310.             // Clean output buffer on error
  •  311.             $curObLevel = ob_get_level();
  •  312.             if ($curObLevel > $obLevel) {
  •  313.                 do {

  • FICHEIRO: /home2/nsomed/library/Zend/View/Helper/Action.php
  • LINHA:    135
  •  131.                       ->setControllerName($controller)
  •  132.                       ->setActionName($action)
  •  133.                       ->setDispatched(true);
  •  134.
  •  135.         $this->dispatcher->dispatch($this->request, $this->response);
  •  136.
  •  137.         // reset the viewRenderer object to it's original state
  •  138.         Zend_Controller_Action_HelperBroker::addHelper($viewRendererObj);
  •  139.
  •  140.

  • FICHEIRO: /home2/nsomed/library/Goweb/View/Helper/Component.php
  • LINHA:    56
  •  52.         $params['directRequest'] = false;
  •  53.
  •  54.         //$controllerName = $this->_formatControllerName($controller);
  •  55.         //$actionName = $this->_formatActionName($action);
  •  56.         $return = $this->action($action, $controller, null, $params);
  •  57.         //goweb::dump($return);
  •  58.         //exit();
  •  59.         return $return;
  •  60.     }
  •  61. }

  • FICHEIRO: /home2/nsomed/library/Zend/View/Abstract.php
  • LINHA:    350
  •  346.         // call the helper method
  •  347.         return call_user_func_array(
  •  348.             array($helper, $name),
  •  349.             $args
  •  350.         );
  •  351.     }
  •  352.
  •  353.     /**
  •  354.      * Given a base path, sets the script, helper, and filter paths relative to it
  •  355.      *

  • FICHEIRO: /home2/nsomed/views/base.tpl
  • LINHA:    51
  •  47.                         </nav>
  •  48.                     <?php endif; ?>
  •  49.                     
  •  50.                     <section class="page__section">
  •  51.                         <?php echo $this->component('Banners/bannersPagina/categoria_id/2/pagina_id/' . $id); ?>
  •  52.                     </section>
  •  53.                     
  •  54.                     <?php if ((isset($error) && $error) || (isset($message) && $message)) : ?>
  •  55.                         <section class="page__section">
  •  56.                             <div class="section">

  • FICHEIRO: /home2/nsomed/views/base.tpl
  • LINHA:    51
  •  47.                         </nav>
  •  48.                     <?php endif; ?>
  •  49.                     
  •  50.                     <section class="page__section">
  •  51.                         <?php echo $this->component('Banners/bannersPagina/categoria_id/2/pagina_id/' . $id); ?>
  •  52.                     </section>
  •  53.                     
  •  54.                     <?php if ((isset($error) && $error) || (isset($message) && $message)) : ?>
  •  55.                         <section class="page__section">
  •  56.                             <div class="section">

  • FICHEIRO: /home2/nsomed/library/Goweb/View.php
  • LINHA:    49
  •  45.         extract(get_object_vars($this));
  •  46.         if ($this->_useViewStream && $this->useStreamWrapper()) {
  •  47.             include 'zend.view://' . func_get_arg(0);
  •  48.         } else {
  •  49.             include func_get_arg(0);
  •  50.         }
  •  51.     }
  •  52.
  •  53.     /**
  •  54.      * Escapes a value for output in a view script.

  • FICHEIRO: /home2/nsomed/library/Zend/View/Abstract.php
  • LINHA:    888
  •  884.         $this->_file = $this->_script($name);
  •  885.         unset($name); // remove $name from local scope
  •  886.
  •  887.         ob_start();
  •  888.         $this->_run($this->_file);
  •  889.
  •  890.         return $this->_filter(ob_get_clean()); // filter output
  •  891.     }
  •  892.
  •  893.     /**

  • FICHEIRO: /home2/nsomed/library/Zend/Controller/Action/Helper/ViewRenderer.php
  • LINHA:    912
  •  908.             $name = $this->getResponseSegment();
  •  909.         }
  •  910.
  •  911.         $this->getResponse()->appendBody(
  •  912.             $this->view->render($script),
  •  913.             $name
  •  914.         );
  •  915.
  •  916.         $this->setNoRender();
  •  917.     }

  • FICHEIRO: /home2/nsomed/library/Zend/Controller/Action/Helper/ViewRenderer.php
  • LINHA:    933
  •  929.     public function render($action = null, $name = null, $noController = null)
  •  930.     {
  •  931.         $this->setRender($action, $name, $noController);
  •  932.         $path = $this->getViewScript();
  •  933.         $this->renderScript($path, $name);
  •  934.     }
  •  935.
  •  936.     /**
  •  937.      * Render a script based on specification variables
  •  938.      *

  • FICHEIRO: /home2/nsomed/library/Zend/Controller/Action/Helper/ViewRenderer.php
  • LINHA:    972
  •  968.      */
  •  969.     public function postDispatch()
  •  970.     {
  •  971.         if ($this->_shouldRender()) {
  •  972.             $this->render();
  •  973.         }
  •  974.     }
  •  975.
  •  976.     /**
  •  977.      * Should the ViewRenderer render a view script?

  • FICHEIRO: /home2/nsomed/library/Zend/Controller/Action/HelperBroker.php
  • LINHA:    277
  •  273.      */
  •  274.     public function notifyPostDispatch()
  •  275.     {
  •  276.         foreach (self::getStack() as $helper) {
  •  277.             $helper->postDispatch();
  •  278.         }
  •  279.     }
  •  280.
  •  281.     /**
  •  282.      * getHelper() - get helper by name

  • FICHEIRO: /home2/nsomed/library/Goweb/Controller/Action.php
  • LINHA:    286
  •  282.
  •  283.         // whats actually important here is that this action controller is
  •  284.         // shutting down, regardless of dispatching; notify the helpers of this
  •  285.         // state
  •  286.         $this->_helper->notifyPostDispatch();
  •  287.     }    
  •  288.
  •  289.     /**
  •  290.      * Obter Caracteres especiais usados em windows
  •  291.      *

  • FICHEIRO: /home2/nsomed/library/Zend/Controller/Dispatcher/Standard.php
  • LINHA:    308
  •  304.             ob_start();
  •  305.         }
  •  306.
  •  307.         try {
  •  308.             $controller->dispatch($action);
  •  309.         } catch (Exception $e) {
  •  310.             // Clean output buffer on error
  •  311.             $curObLevel = ob_get_level();
  •  312.             if ($curObLevel > $obLevel) {
  •  313.                 do {

  • FICHEIRO: /home2/nsomed/library/Zend/Controller/Front.php
  • LINHA:    954
  •  950.                 /**
  •  951.                  * Dispatch request
  •  952.                  */
  •  953.                 try {
  •  954.                     $dispatcher->dispatch($this->_request, $this->_response);
  •  955.                 } catch (Exception $e) {
  •  956.                     if ($this->throwExceptions()) {
  •  957.                         throw $e;
  •  958.                     }
  •  959.                     $this->_response->setException($e);

  • FICHEIRO: /home2/nsomed/library/Goweb/Application.php
  • LINHA:    449
  •  445.     }
  •  446.
  •  447.     public function runApp(){
  •  448.         $frontController = Zend_Controller_Front::getInstance();
  •  449.         $frontController->dispatch();
  •  450.     }
  •  451. }

  • FICHEIRO: /home2/nsomed/public_html/index.php
  • LINHA:    54
  •  50. $application->initPainel();
  •  51. $lang = isset($_GET['lang']) ? $_GET['lang'] : null;
  •  52. $application->initLanguage($lang, true, false);
  •  53. $application->initLanguageAdmin($lang, true, true);
  •  54. $application->runApp();
  •  55.
  •  56.
  •  57. /**
  •  58.  * Efectua a traducao de uma string.
  •  59.  */