1 |
plik /library/Zend/Db/Adapter/Pdo/Abstract.php w linijce 144 :
138: ...
139: } catch (PDOException $e) {
140: /**
141: * @see Zend_Db_Adapter_Exception
142: */
143: require_once 'Zend/Db/Adapter/Exception.php';
144: throw new Zend_Db_Adapter_Exception($e->getMessage(), $e->getCode(), $e); 145: }
146:
147: }
148:
149: /**
150: ...
|
2 |
plik /library/Zend/Db/Adapter/Pdo/Mysql.php w linijce 96 :
90: ...
91: if (!empty($this->_config['charset'])) {
92: $initCommand = "SET NAMES '" . $this->_config['charset'] . "'";
93: $this->_config['driver_options'][1002] = $initCommand; // 1002 = PDO::MYSQL_ATTR_INIT_COMMAND
94: }
95:
96: parent::_connect(); 97: }
98:
99: /**
100: * @return string
101: */
102: ...
|
3 |
plik /library/Zend/Db/Adapter/Abstract.php w linijce 459 :
453: ...
454: * @return Zend_Db_Statement_Interface
455: */
456: public function query($sql, $bind = array())
457: {
458: // connect to the database if needed
459: $this->_connect(); 460:
461: // is the $sql a Zend_Db_Select object?
462: if ($sql instanceof Zend_Db_Select) {
463: if (empty($bind)) {
464: $bind = $sql->getBind();
465: ...
|
4 |
plik /library/Zend/Db/Adapter/Pdo/Abstract.php w linijce 238 :
232: ...
233: }
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';
244: ...
|
5 |
plik /library/Zend/Db/Adapter/Pdo/Mysql.php w linijce 156 :
150: ...
151: if ($schemaName) {
152: $sql = 'DESCRIBE ' . $this->quoteIdentifier("$schemaName.$tableName", true);
153: } else {
154: $sql = 'DESCRIBE ' . $this->quoteIdentifier($tableName, true);
155: }
156: $stmt = $this->query($sql); 157:
158: // Use FETCH_NUM so we are not dependent on the CASE attribute of the PDO connection
159: $result = $stmt->fetchAll(Zend_Db::FETCH_NUM);
160:
161: $field = 0;
162: ...
|
6 |
plik /library/Zend/Db/Table/Abstract.php w linijce 834 :
828: ...
829: // If $this has no metadata cache or metadata cache misses
830: if (null === $this->_metadataCache || !($metadata = $this->_metadataCache->load($cacheId))) {
831: // Metadata are not loaded from cache
832: $isMetadataFromCache = false;
833: // Fetch metadata from the adapter's describeTable() method
834: $metadata = $this->_db->describeTable($this->_name, $this->_schema); 835: // If $this has a metadata cache, then cache the metadata
836: if (null !== $this->_metadataCache && !$this->_metadataCache->save($metadata, $cacheId)) {
837: trigger_error('Failed saving metadata to metadataCache', E_USER_NOTICE);
838: }
839: }
840: ...
|
7 |
plik /library/Zend/Db/Table/Abstract.php w linijce 856 :
850: ...
851: * @return array
852: */
853: protected function _getCols()
854: {
855: if (null === $this->_cols) {
856: $this->_setupMetadata(); 857: $this->_cols = array_keys($this->_metadata);
858: }
859: return $this->_cols;
860: }
861:
862: ...
|
8 |
plik /library/Zend/Db/Table/Abstract.php w linijce 896 :
890: ...
891: } else if (isset($this->_primary[0])) {
892: array_unshift($this->_primary, null);
893: unset($this->_primary[0]);
894: }
895:
896: $cols = $this->_getCols(); 897: if (! array_intersect((array) $this->_primary, $cols) == (array) $this->_primary) {
898: require_once 'Zend/Db/Table/Exception.php';
899: throw new Zend_Db_Table_Exception("Primary key column(s) ("
900: . implode(',', (array) $this->_primary)
901: . ") are not columns in this table ("
902: ...
|
9 |
plik /library/Zend/Db/Table/Abstract.php w linijce 980 :
974: ...
975: * @param string $key The specific info part to return OPTIONAL
976: * @return mixed
977: */
978: public function info($key = null)
979: {
980: $this->_setupPrimaryKey(); 981:
982: $info = array(
983: self::SCHEMA => $this->_schema,
984: self::NAME => $this->_name,
985: self::COLS => $this->_getCols(),
986: ...
|
10 |
plik /library/Zend/Db/Table/Select.php w linijce 100 :
94: ...
95: * @return Zend_Db_Select This Zend_Db_Select object.
96: */
97: public function setTable(Zend_Db_Table_Abstract $table)
98: {
99: $this->_adapter = $table->getAdapter();
100: $this->_info = $table->info(); 101: $this->_table = $table;
102:
103: return $this;
104: }
105:
106: ...
|
11 |
plik /library/Zend/Db/Table/Select.php w linijce 78 :
72: ...
73: */
74: public function __construct(Zend_Db_Table_Abstract $table)
75: {
76: parent::__construct($table->getAdapter());
77:
78: $this->setTable($table); 79: }
80:
81: /**
82: * Return the table that created this select object
83: *
84: ...
|
12 |
plik /library/Zend/Db/Table/Abstract.php w linijce 1016 :
1010: ...
1011: * @return Zend_Db_Table_Select
1012: */
1013: public function select($withFromPart = self::SELECT_WITHOUT_FROM_PART)
1014: {
1015: require_once 'Zend/Db/Table/Select.php';
1016: $select = new Zend_Db_Table_Select($this); 1017: if ($withFromPart == self::SELECT_WITH_FROM_PART) {
1018: $select->from($this->info(self::NAME), Zend_Db_Table_Select::SQL_WILDCARD, $this->info(self::SCHEMA));
1019: }
1020: return $select;
1021: }
1022: ...
|
13 |
plik /library/Zend/Db/Table/Abstract.php w linijce 1314 :
1308: ...
1309: * @return Zend_Db_Table_Rowset_Abstract The row results per the Zend_Db_Adapter fetch mode.
1310: */
1311: public function fetchAll($where = null, $order = null, $count = null, $offset = null)
1312: {
1313: if (!($where instanceof Zend_Db_Table_Select)) {
1314: $select = $this->select(); 1315:
1316: if ($where !== null) {
1317: $this->_where($select, $where);
1318: }
1319:
1320: ...
|
14 |
plik /library/Koli/Model/Structure.php w linijce 50 :
44: ...
45: if ($active_clause != 0)
46: $where_clause[] = 'active = ' . ( (int) $active_clause);
47:
48: $where_clause[] = 'parent = ' . (intval($parent));
49:
50: $rs = $this->fetchAll($where_clause, array('order asc')); 51:
52: if (empty($rs)) {
53: return array();
54: } else {
55: return $rs->toArray();
56: ...
|
15 |
plik /library/Koli/Model/Structure.php w linijce 149 :
143: ...
144:
145: public function getMenuStructure($startId=0, $active=0) {
146: if($startId<0)return NULL;
147: $readyItems = Koli_Tools::getCache($this->_cache_name . $startId . "_" . $active);
148: if ($readyItems == FALSE) {
149: $items = $this->getAllByParent($startId, $active); 150: if (count($items) > 0) {
151: $readyItems = array();
152: foreach ($items as $key => $item) {
153: $item['subs'] = $this->getMenuStructure($item['id'], $active);
154: $readyItems[] = $item;
155: ...
|
16 |
plik /application/Main_Controller.php w linijce 96 :
90: ...
|
17 |
plik /library/Koli/Controller/Shop/ProduktyController.php w linijce 14 :
8: ...
9: parent::init();
10: $this->_products = new Products();
11: }
12:
13: public function preDispatch() {
14: parent::preDispatch(); 15: $this->view->setDisplay('../templates/default/layout_noflash.tpl');
16: }
17:
18: public function indexAction() {
19: $category_link_name = $this->_request->getParam("category_link_name", FALSE);
20: ...
|
18 |
plik /library/Zend/Controller/Action.php w linijce 502 :
496: ...
497: public function dispatch($action)
498: {
499: // Notify helpers of action preDispatch state
500: $this->_helper->notifyPreDispatch();
501:
502: $this->preDispatch(); 503: if ($this->getRequest()->isDispatched()) {
504: if (null === $this->_classMethods) {
505: $this->_classMethods = get_class_methods($this);
506: }
507:
508: ...
|
19 |
plik /library/Zend/Controller/Dispatcher/Standard.php w linijce 295 :
289: ...
290: if (empty($disableOb)) {
291: ob_start();
292: }
293:
294: try {
295: $controller->dispatch($action); 296: } catch (Exception $e) {
297: // Clean output buffer on error
298: $curObLevel = ob_get_level();
299: if ($curObLevel > $obLevel) {
300: do {
301: ...
|
20 |
plik /library/Zend/Controller/Front.php w linijce 954 :
948: ...
949:
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);
960: ...
|
21 |
plik /html/index.php w linijce 200 :
194: ...
195:
196: function __($str){
197: return $str;
198: }
199:
200: $front->dispatch();
|