Class: AdminController
Source Location: /controllers/admin_controller.php
Controller
|
--AdminController
Controller used to handle admin functionalities such as modify login and password, CREATE, UPDATE,DELETE operations for users, roles, locale, and crawls
Author(s):
Implements interfaces:
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Class Methods
method checkSignin [line 188]
Checks whether the user name and password sent presumably by the signin form match a user in the database
Tags:
method configure [line 2563]
Responsible for handling admin request related to the configure activity The configure activity allows a user to set the work directory for storing data local to this SeekQuarry/Yioop instance. It also allows one to set the default language of the installation, dbms info, robot info, test info, as well as which machine acts as the queue server.
Tags:
method configureRequest [line 175]
If there is no profile/work directory set up then this method get called to by pass any login and go to the configure screen. The configure screen is only displayed if the user is connected from localhost in this case
method convertArrayLines [line 1164]
string convertArrayLines(
array
$arr, [string
$endline_string = "\n"], [bool
$clean = false])
|
|
Converts an array of lines of strings into a single string with proper newlines, each line having been trimmed and potentially cleaned
Tags:
Parameters:
method convertStringCleanArray [line 1190]
$lines convertStringCleanArray(
string
$str, [string
$line_type = "url"])
|
|
Cleans a string consisting of lines, typically of urls into an array of clean lines. This is used in handling data from the crawl options text areas.
Tags:
Parameters:
method crawlStatus [line 274]
Used to handle crawlStatus REST activities requesting the status of the current web crawl
Tags:
method editCrawlOption [line 954]
void editCrawlOption(
array
&$data, array
$machine_urls)
|
|
Called from @see manageCrawls to edit the parameters for the next crawl (or current crawl) to be carried out by the machines $machine_urls. Updates $data array to be supplied to AdminView
Parameters:
method editMix [line 1324]
array editMix(
&$data,
&$mix_ids,
$mix)
|
|
Handles admin request related to the editing a crawl mix activity
Tags:
Parameters:
method getCrawlParametersFromSeedInfo [line 898]
void getCrawlParametersFromSeedInfo(
array
&$crawl_params, array
$seed_info)
|
|
Reads the parameters for a crawl from an array gotten from a crawl.ini file
Parameters:
method machineStatus [line 328]
Gets data from the machineModel concerning the on/off states of the machines managed by this Yioop instance and then passes this data the the machinestatus view.
Tags:
method manageAccount [line 349]
Used to handle the change current user password admin activity
Tags:
method manageCrawls [line 748]
Used to handle the manage crawl activity. This activity allows new crawls to be started, statistics about old crawls to be seen. It allows a user to stop the current crawl or restart an old crawl. It also allows a user to configure the options by which a crawl is conducted
Tags:
method manageLocales [line 2168]
Handles admin request related to the manage locale activity The manage locale activity allows a user to add/delete locales, view statistics about a locale as well as edit the string for that locale
Tags:
method manageMachines [line 1870]
Handles admin request related to the managing the machines which perform crawls With this activity an admin can add/delete machines to manage. For each managed machine, the admin can stop and start fetchers/queue_servers as well as look at their log files
Tags:
method manageRoles [line 572]
Used to handle the manage role activity. This activity allows new roles to be added, old roles to be deleted and allows activities to be added to/deleted from a role
Tags:
method manageUsers [line 401]
Used to handle the manage user activity. This activity allows new users to be added, old users to be deleted and allows roles to be added to/deleted from a user
Tags:
method mixCrawls [line 1224]
Handles admin request related to the crawl mix activity The crawl mix activity allows a user to create/edit crawl mixes: weighted combinations of search indexes
Tags:
method pageOptions [line 1442]
Handles admin request related to controlling file options to be used in a crawl This activity allows a user to specify the page range size to be be used during a crawl as well as which file types can be downloaded
Tags:
method processRequest [line 103]
This is the main entry point for handling requests to administer the Yioop/SeekQuarry site ProcessRequest determines the type of request (signin , manageAccount, etc) is being made. It then calls the appropriate method to handle the given activity. Finally, it draws the relevant admin screen
Overrides Controller::processRequest() (This function should be overriden to web handle requests)
method processSession [line 205]
Determines the user's current allowed activities and current activity, then calls the method for the latter. This is called from processRequest() once a user is logged in.
Tags:
method resultsEditor [line 1784]
Handles admin request related to the search filter activity This activity allows a user to specify hosts whose web pages are to be filtered out the search results
Tags:
method searchSources [line 2422]
Handles admin request related to the search sources activity The search sources activity allows a user to add/delete search sources for video and news, it also allows a user to control which subsearches appear on the SearchView page
Tags:
method signin [line 258]
This method is data to signin a user and initialize the data to be display in a view
Tags:
method startCrawl [line 852]
void startCrawl(
array
&$data, array
$machine_urls, [
$seed_info = NULL])
|
|
Called from @see manageCrawls to start a new crawl on the machines $machine_urls. Updates $data array with crawl start message
Parameters:
method systemCheck [line 2313]
Checks to see if the current machine has php configured in a way Yioop! can run.
Tags:
method updateProfileFields [line 2901]
void updateProfileFields(
&$data,
&$profile, [
$check_box_fields = array()])
|
|
Parameters:
|
|