function nodes::GetUserSubmissionsChildren() created, need to write some usefull...
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / smarty / node_methodz / function.get_user_submissions_children.php
CommitLineData
95a6ccc2 1<?php\r
2\r
3// Get all the direct replies for user submisions\r
4\r
5function smarty_function_get_user_submissions_children($params, &$smarty) {\r
6\r
368d735f 7 if (isset($_SESSION['user_id']))\r
95a6ccc2 8 $user_id = $_SESSION['user_id'];\r
9 else\r
10 return -1;\r
368d735f 11/*\r
95a6ccc2 12 if (!isset($params['listing_amount']))\r
13 $listing_amount = DEFAULT_LISTING_AMMOUNT;\r
14 else\r
15 $listing_amount = $params['listing_amount'];\r
16\r
17 if (empty($params['offset']))\r
18 $offset = 0;\r
19 else\r
20 $offset = $params['offset'];\r
21 \r
22 if (!isset($params['order_by']))\r
23 $order_by = $params['order_by'];\r
24 else\r
25 $order_by = 'node_id';\r
368d735f
H
26*/\r
27 $replies=nodes::GetUserSubmissionsChildren($user_id /*,$listing_ammount,$offset,$order_by*/ );\r
95a6ccc2 28 $smarty->assign('get_user_submissions_children', $replies);\r
368d735f 29\r
95a6ccc2 30}\r
31\r
This page took 0.109364 seconds and 4 git commands to generate.