remove old readme
[atutor.git] / docs / mods / _standard / social / lib / constants.inc.php
1 <?php
2 /****************************************************************/
3 /* ATutor                                                                                                               */
4 /****************************************************************/
5 /* Copyright (c) 2002-2009                                                                              */
6 /* Inclusive Design Institute                                   */
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 global $_config;
17 if (isset($_config['shindig_url'])){
18         define(AT_SHINDIG_URL,          $_config['shindig_url']);
19 } else {
20         define(AT_SHINDIG_URL,          'http://social.atutor.ca/shindig/php');
21 }
22
23 //Social base variables
24 define('AT_SOCIAL_BASENAME',    'mods/_standard/social/');
25 define('AT_SOCIAL_BASE',                AT_INCLUDE_PATH.'../mods/_standard/social/');
26 define('AT_SOCIAL_INCLUDE',             AT_SOCIAL_BASE.'lib/');
27 //if course_id = 0, then it's outside of course scope, use index_mystart. "just_social" inclusive.
28 if($_SESSION['course_id'] == 0 ){
29         define('AT_SOCIAL_INDEX', 'index_mystart.php');
30 } else {
31         define('AT_SOCIAL_INDEX', 'index.php');
32 }
33
34 //Privacy Control Constants, field indices
35 //Profile
36 define(AT_SOCIAL_PROFILE_BASIC,                         0);     //Basic profile info
37 define(AT_SOCIAL_PROFILE_PROFILE,                       1);     //All Profile info
38 define(AT_SOCIAL_PROFILE_STATUS_UPDATE,         2);
39 define(AT_SOCIAL_PROFILE_MEDIA,                         3);
40 define(AT_SOCIAL_PROFILE_CONNECTION,            4);
41 define(AT_SOCIAL_PROFILE_EDUCATION,                     5);
42 define(AT_SOCIAL_PROFILE_POSITION,                      6);     //Job
43 //Search                
44 define(AT_SOCIAL_SEARCH_VISIBILITY,                     0);     //Who can find the user via search
45 //Search Results set? What to return via the search
46 define(AT_SOCIAL_SEARCH_PROFILE,                        1);     //Search through profile?
47 define(AT_SOCIAL_SEARCH_CONNECTION,                     2);     //Search through connection?
48 define(AT_SOCIAL_SEARCH_EDUCATION,                      3);     //Search through education?
49 define(AT_SOCIAL_SEARCH_POSITION,                       4);     //Search through job position?
50 //Actvity
51 define(AT_SOCIAL_ACTIVITIES_PROFILE,            0);     //Profile updates
52 define(AT_SOCIAL_ACTIVITIES_CONNECTION,         1);     //Adding a connection
53 define(AT_SOCIAL_ACTIVITIES_APPLICATION,        2);     //Adding an application
54 //Application 
55 //TODO: Application can record activities via ATutorAppDataService, restrict it.
56
57 //Any additional flags should be added to 
58 //  lib/classes/PrivacyControl/PrivacyController.class.php::getPermissionLevels()
59 define(AT_SOCIAL_EVERYONE_VISIBILITY,                           0);     //Everyone that is not a friend of mine
60 define(AT_SOCIAL_FRIENDS_VISIBILITY,                            1);     //Friends
61 define(AT_SOCIAL_FRIENDS_OF_FRIENDS_VISIBILITY,         2);     //Friends of Friends
62 define(AT_SOCIAL_NETWORK_VISIBILITY,                            3);     //Network
63 define(AT_SOCIAL_OWNER_VISIBILITY,                                      4);     //Myself
64 define(AT_SOCIAL_GROUPS_VISIBILITY,                                     5);     //Groups
65
66 //Display control
67 define('SOCIAL_FRIEND_ACTIVITIES_MAX',                          10); //Activity class constants
68 define('SOCIAL_FRIEND_HOMEPAGE_MAX',                            15); //# of friends to display on the homepage contact's box
69 define('SOCIAL_GROUP_HOMEPAGE_MAX',                                     3); //# of friends to display on the homepage contact's box
70 define('SOCIAL_GROUP_MAX',                                                      5); //# of friends to display on the homepage contact's box
71 define('SOCIAL_APPLICATION_UPDATE_SCHEDULE',            10); //in days
72 define('SOCIAL_NUMBER_OF_PEOPLE_YOU_MAY_KNOW',          3);      //the number of "people you may know" to be displayed on the home tab
73 define('SOCIAL_FRIEND_SEARCH_MAX',                                      50); //search result maximum
74
75 ?>