1: <?php defined('_JOOS_CORE') or exit();
2:
3: /**
4: * modelPages - Модель независимымых страниц
5: * Модель для работы сайта
6: *
7: * @version 1.0
8: * @package Components\Pages
9: * @subpackage Models\Site
10: * @author Joostina Team <info@joostina.ru>
11: * @copyright (C) 2007-2012 Joostina Team
12: * @license MIT License http://www.opensource.org/licenses/mit-license.php
13: * Информация об авторах и лицензиях стороннего кода в составе Joostina CMS: docs/copyrights
14: *
15: * */
16: class modelPages extends joosModel
17: {
18: /**
19: * @field int(11) unsigned
20: * @type int
21: */
22: public $id;
23:
24: /**
25: * @field varchar(200)
26: * @type string
27: */
28: public $title;
29:
30: /**
31: * @field varchar(200)
32: * @type string
33: */
34: public $slug;
35:
36: /**
37: * @field text
38: * @type string
39: */
40: public $text;
41:
42: /**
43: * @field text
44: * @type string
45: */
46: public $meta_keywords;
47:
48: /**
49: * @field text
50: * @type string
51: */
52: public $meta_description;
53:
54: /**
55: * @field datetime
56: * @type datetime
57: */
58: public $created_at;
59:
60: /**
61: * @field tinyint(1) unsigned
62: * @type int
63: */
64: public $state;
65:
66: /*
67: * Constructor
68: */
69:
70: public function __construct()
71: {
72: parent::__construct('#__pages', 'id');
73: }
74:
75: public function check()
76: {
77: $this->filter(array('text'));
78:
79: return true;
80: }
81:
82: }
83: