PageRenderTime 54ms CodeModel.GetById 30ms RepoModel.GetById 1ms app.codeStats 0ms

/controllers/home_category.controller.php

https://bitbucket.org/jeremejevs/ekselcom-website
PHP | 23 lines | 11 code | 4 blank | 8 comment | 0 complexity | 5c0ee0cadc7eb214e7e0197c374de5d2 MD5 | raw file
  1. <?php
  2. class home_category
  3. {
  4. public static $entries = array();
  5. public static function configure_entries()
  6. {
  7. home_category::$entries = data::get_entries_by_parent(core::$request[0]['id'], 8);
  8. /*$result = mysql_query("SELECT * FROM global_structure WHERE parent_id = ".core::$request[0]['id']." ORDER BY created_on DESC LIMIT 0, 8");
  9. while ($tmp = mysql_fetch_assoc($result))
  10. {
  11. $tmp_entity = array('title' => $tmp['name'], 'created_on' => substr($tmp['created_on'], 0, 10));
  12. $tmp_meta = core::unserialize($tmp['meta'], array('content'));
  13. $tmp_entity['content'] = $tmp_meta['content'];
  14. home_cateogry::$entities[] = $tmp_entity;
  15. }*/
  16. }
  17. }
  18. home_category::configure_entries();
  19. include $_SERVER['DOCUMENT_ROOT'].'/views/home_category.view.php';