This is the class expController
subpackage |
Controllers |
---|---|
package |
Modules |
__construct(null $src = null, array $params = array())
Throws |
|
---|
null
array
activate()
addContentToSearch() : integer
Throws |
|
---|
integer
number of items added to search index
aggregateWhereClause(string $type = '') : string
string
string
approve()
build_control()
canExportData() : boolean
boolean
canImportData() : boolean
boolean
categories()
checkPermissions( $permission, $location)
configure()
confirm_data()
create()
deprecated |
in favor of edit w/o id param |
---|---|
delete()
delete_control()
delete_form()
delete_In( $loc)
delete_instance(boolean $loc = false)
Throws |
|
---|
boolean
delete_records()
delete_search()
description() : string
string
design_form()
displayname() : string
string
downloadfile()
edit()
edit_control()
edit_form()
enter_data()
enterdata()
export_csv()
export_eql()
export_eql_process()
get_defaults( $form)
getModels() : array
array
getRSSContent(integer $limit) : array
this function is very general and will most of the time need to be overwritten and customized
integer
array
hasContent()
hasSources() : boolean
boolean
hasViews()
import_csv()
import_csv_data_add()
import_csv_data_display()
import_csv_data_mapper()
import_csv_form_add()
import_csv_form_prep()
import_csv_mapper()
import_eql()
import_eql_process()
isSearchable() : boolean
boolean
manage()
manage_ranks()
merge()
moduleSelfAwareness()
deprecated | |
---|---|
name() : string
string
requiresConfiguration()
rerank()
rerank_control()
rss()
save_control()
saveconfig()
searchCategory() : string
string
searchHit( $record) : boolean
boolean
searchName() : string
string
show()
showall()
showByTags()
deprecated | |
---|---|
showByTitle()
deprecated | |
---|---|
showRandom()
sql2csv( $items, array|null $rptcols = null) : string
We grab the items array which is stored funkily in the DB in an associative array when we pull it. So basically our aray looks like this:
ITEMS {[id]=>myID, [Name]=>name, [Address]=>myaddr} {[id]=>myID1, [Name]=>name1, [Address]=>myaddr1} {[id]=>myID2, [Name]=>name2, [Address]=>myaddr2} {[id]=>myID3, [Name]=>name3, [Address]=>myaddr3} {[id]=>myID4, [Name]=>name4, [Address]=>myaddr4} {[id]=>myID5, [Name]=>name5, [Address]=>myaddr5}
So by nature of the array, the keys are repeated in each line (id, name, etc) So if we want to make a header row, we just run through once at the beginning and use the array_keys function to strip out a functional header
array|null
string
submit_data()
supportsWorkflow() : boolean
boolean
update()
update_form()
useractions :
remove_configs :
classname :
baseclassname :
classinfo :
basemodel_name :
model_table :
requires_login :
filepath :
viewpath :
relative_viewpath :
asset_path :
config :
params :
loc :
codequality :
rss_is_podcast :
return all comments used by module's items