*/
public function getList( $where = '', $order = '', $fieldVals = true, $idField = 'id', $start = false, $limit = false, $prohibitListOptions = false, $appendSelect = null )
{
+ $this->selectGroupFields();
// For testing only
/*
);
}
+ $this->restoreFields();
// Since we're not doing paging, return the list only
return $newList;
}
*/
public function getEntry($id, $idfield = 'id', $where = 'true', $fieldVals = false)
{
-
$this->selectGroupFields();
// If there's an ID supplied, add that to the query
$idWhere = '';
*/
public function newEntry()
{
+ $this->selectGroupFields();
// Doing processInputData() with operation "n" only gets setup info
// such as pick-lists and does not actually process input.
$r = $this->processInputData('n');
// Check if there's a function to do other checks
$r = $this->checkOther($r, 'n');
+ $this->restoreFields();
return $r;
}
*/
public function insertEntry($store = true, $fieldPrefix = '')
{
+ $this->selectGroupFields();
// Store any input field prefix
$this->fieldPrefix = $fieldPrefix;
}
+ $this->restoreFields();
return $r;
}
*/
public function editEntry($id, $idField = 'id')
{
+ $this->selectGroupFields();
$this->buildFieldsList('g');
$sql = "SELECT $this->select
// Process individual fields
$detail = $this->processOutputData($detail, 'e', true, $id, $idField);
+ $this->restoreFields();
return $detail;
}
);
}
- // Check for submission option
+ // Check for option
$option = '';
- if ( isset( $_REQUEST[ 'option' ] ) && $_REQUEST[ 'option' ] == 'submit' ) {
+ if ( isset( $_REQUEST[ 'option' ] ) ) {
$option = $_REQUEST['option'];
}
case 'clearCache':
- // Cleaor the shortcode cache.
- glmClearShortcodeCache();
-
// Try to get the first (should be only) entry for general settings.
$generalSettings = $this->editEntry( $id );
+
+ // Clear the shortcode cache.
+ glmClearShortcodeCache();
+
break;
// Default is to get the current settings and display the form