function &_getReltypeSource() { require_once 'AMP/System/Data/Set.inc.php'; $set = new AMPSystem_Data_Set($this->dbcon); $set->setSource('linksreltype'); return $set; }
function _clear_saved_tags() { require_once 'AMP/System/Data/Set.inc.php'; $save_table = new AMPSystem_Data_Set($this->dbcon); $save_table->setSource('tags_items'); $delete_crit = 'item_type = "form" and item_id = ' . $this->udm->uid; return $save_table->deleteData($delete_crit); }
function init(&$dbcon, $podcast = null) { $this->podcast = $podcast; parent::init($dbcon); }
function deleteMessage($message_id) { $userRecords = new AMPSystem_Data_Set($this->dbcon); $userRecords->setSource(PHPLIST_TABLE_USER_MESSAGE); return $this->deleteData('messageid=' . $message_id) && $userRecords->deleteData('messageid=' . $message_id); }
function &_getSearchSource($criteria = null) { if (isset($this->_search_source) && $this->_search_source) { if (!isset($criteria)) { return $this->_search_source; } $data_set =& $this->_search_source; } else { require_once 'AMP/System/Data/Set.inc.php'; $data_set = new AMPSystem_Data_Set($this->dbcon); $data_set->setSource($this->datatable); } if (isset($criteria)) { $data_set->setCriteria($criteria); /* foreach( $criteria as $crit_phrase ){ $data_set->addCriteria( $crit_phrase ); } */ } foreach ($this->_search_criteria_global as $crit_phrase) { $data_set->addCriteria($crit_phrase); } if (!$this->_allow_db_cache) { $data_set->clearCache(); } $this->_search_source =& $data_set; return $this->_search_source; }