1 | <?php |
||
19 | class Profile extends FrontAppController |
||
20 | { |
||
21 | const BLOCK_PER_PAGE = 10; |
||
22 | const EVENT_CHANGE_PASSWORD = 'profile.changepassword.success'; |
||
23 | const NOTIFY_PER_PAGE = 25; |
||
24 | |||
25 | /** |
||
26 | * Fatty action like actionIndex(), actionShow() are located in standalone traits. |
||
27 | * This feature allow provide better read&write accessibility |
||
28 | */ |
||
29 | |||
30 | use Profile\ActionIndex { |
||
31 | index as actionIndex; |
||
32 | } |
||
33 | |||
34 | use Profile\ActionShow { |
||
35 | show as actionShow; |
||
36 | } |
||
37 | |||
38 | use Profile\ActionFeed { |
||
39 | feed as actionFeed; |
||
40 | } |
||
41 | |||
42 | use Profile\ActionWallDelete { |
||
43 | wallDelete as actionWalldelete; |
||
44 | } |
||
45 | |||
46 | use Profile\ActionAvatar { |
||
47 | avatar as actionAvatar; |
||
48 | } |
||
49 | |||
50 | use Profile\ActionNotifications { |
||
51 | notifications as actionNotifications; |
||
52 | } |
||
53 | |||
54 | use Profile\ActionIgnore { |
||
55 | ignore as actionIgnore; |
||
56 | } |
||
57 | |||
58 | use Profile\ActionSearch { |
||
59 | search as actionSearch; |
||
60 | } |
||
61 | |||
62 | use Profile\ActionUnblock { |
||
63 | unblock as actionUnblock; |
||
64 | } |
||
65 | |||
66 | use Profile\ActionPassword { |
||
67 | password as actionPassword; |
||
68 | } |
||
69 | |||
70 | |||
71 | /** |
||
72 | * Show user messages (based on ajax, all in template) |
||
73 | * @return string |
||
74 | * @throws \Ffcms\Core\Exception\SyntaxException |
||
75 | * @throws ForbiddenException |
||
76 | */ |
||
77 | public function actionMessages() |
||
85 | |||
86 | /** |
||
87 | * User profile settings |
||
88 | * @return string |
||
89 | * @throws \Ffcms\Core\Exception\SyntaxException |
||
90 | * @throws ForbiddenException |
||
91 | */ |
||
92 | public function actionSettings() |
||
115 | |||
116 | /** |
||
117 | * Show user logs |
||
118 | * @return string |
||
119 | * @throws \Ffcms\Core\Exception\SyntaxException |
||
120 | * @throws ForbiddenException |
||
121 | */ |
||
122 | public function actionLog() |
||
140 | |||
141 | /** |
||
142 | * Cron schedule - build user profiles sitemap |
||
143 | */ |
||
144 | public static function buildSitemapSchedule() |
||
169 | |||
170 | /** |
||
171 | * Cleanup tables as scheduled action |
||
172 | */ |
||
173 | public static function cleanupTablesSchedule() |
||
183 | } |
||
184 |