2b58089590e90216febf66c3cdccf039e77109fb
[atutor.git] / mods / social / lib / constants.inc.php
1 <?php
2 /****************************************************************/
3 /* ATutor                                                                                                               */
4 /****************************************************************/
5 /* Copyright (c) 2002-2009                                                                              */
6 /* Adaptive Technology Resource Centre / University of Toronto  */
7 /* http://atutor.ca                                                                                             */
8 /*                                                              */
9 /* This program is free software. You can redistribute it and/or*/
10 /* modify it under the terms of the GNU General Public License  */
11 /* as published by the Free Software Foundation.                                */
12 /****************************************************************/
13 // $Id$
14
15 //Constants Declaration
16 //define(AT_SHINDIG_URL,                                                'http://localhost/shindig/php');
17 define(AT_SHINDIG_URL,                                          'http://social.atutor.ca/shindig/php');
18
19 //Social base variables
20 define('AT_SOCIAL_BASENAME',    'mods/social/');
21 define('AT_SOCIAL_BASE',                AT_INCLUDE_PATH.'../mods/social/');
22 define('AT_SOCIAL_INCLUDE',             AT_SOCIAL_BASE.'lib/');
23
24 //Privacy Control Constants, field indices
25 //Profile
26 define(AT_SOCIAL_PROFILE_BASIC,                         0);     //Basic profile info
27 define(AT_SOCIAL_PROFILE_PROFILE,                       1);     //All Profile info
28 define(AT_SOCIAL_PROFILE_STATUS_UPDATE,         2);
29 define(AT_SOCIAL_PROFILE_MEDIA,                         3);
30 define(AT_SOCIAL_PROFILE_CONNECTION,            4);
31 define(AT_SOCIAL_PROFILE_EDUCATION,                     5);
32 define(AT_SOCIAL_PROFILE_POSITION,                      6);     //Job
33 //Search                
34 define(AT_SOCIAL_SEARCH_VISIBILITY,                     0);     //Who can find the user via search
35 //Search Results set? What to return via the search
36 define(AT_SOCIAL_SEARCH_PROFILE,                        1);     //Search through profile?
37 define(AT_SOCIAL_SEARCH_CONNECTION,                     2);     //Search through connection?
38 define(AT_SOCIAL_SEARCH_EDUCATION,                      3);     //Search through education?
39 define(AT_SOCIAL_SEARCH_POSITION,                       4);     //Search through job position?
40 //Actvity
41 define(AT_SOCIAL_ACTIVITIES_PROFILE,            0);     //Profile updates
42 define(AT_SOCIAL_ACTIVITIES_CONNECTION,         1);     //Adding a connection
43 define(AT_SOCIAL_ACTIVITIES_APPLICATION,        2);     //Adding an application
44 //Application 
45 //TODO: Application can record activities via ATutorAppDataService, restrict it.
46
47 //Any additional flags should be added to 
48 //  lib/classes/PrivacyControl/PrivacyController.class.php::getPermissionLevels()
49 define(AT_SOCIAL_EVERYONE_VISIBILITY,                           0);     //Everyone that is not a friend of mine
50 define(AT_SOCIAL_FRIENDS_VISIBILITY,                            1);     //Friends
51 define(AT_SOCIAL_FRIENDS_OF_FRIENDS_VISIBILITY,         2);     //Friends of Friends
52 define(AT_SOCIAL_NETWORK_VISIBILITY,                            3);     //Network
53 define(AT_SOCIAL_OWNER_VISIBILITY,                                      4);     //Myself
54 define(AT_SOCIAL_GROUPS_VISIBILITY,                                     5);     //Groups
55
56 //Display control
57 define('SOCIAL_FRIEND_ACTIVITIES_MAX',                          10); //Activity class constants
58 define('SOCIAL_FRIEND_HOMEPAGE_MAX',                            15); //# of friends to display on the homepage contact's box
59 define('SOCIAL_GROUP_HOMEPAGE_MAX',                                     3); //# of friends to display on the homepage contact's box
60 define('SOCIAL_GROUP_MAX',                                                      5); //# of friends to display on the homepage contact's box
61 define('SOCIAL_APPLICATION_UPDATE_SCHEDULE',            10); //in days
62 define('SOCIAL_NUMBER_OF_PEOPLE_YOU_MAY_KNOW',          3);      //the number of "people you may know" to be displayed on the home tab
63 define('SOCIAL_FRIEND_SEARCH_MAX',                                      50); //search result maximum
64 ?>