public function GroupContainer(ContactContainerWithSingleGroup $contactContainer = null) { BaseContainer::BaseContainer(); if (null !== $contactContainer) { $this->MassSetValue($contactContainer->GetContainer()); } }
function getEntity($id = "") { if (empty($id)) { $qry = "select * from COMPANY, CONTACT"; return $this->getEmptyEnt($qry); } $qry = "select * from COMPANY cont where COMPANY_ID='{$id}'"; return BaseContainer::getEntity($qry); }
function getEntity($id = "") { if (empty($id)) { $qry = "select * from GROUPE"; return $this->getEmptyEnt($qry); } $qry = "select * from GROUPE where GROUPE_DELETED='0'and GROUPE_NAME='{$id}'"; return BaseContainer::getEntity($qry); }
function loginUser($userName, $isAdmin = false) { if ($isAdmin) { $qry = "select * from USER where USER_LOGIN_NAME='{$userName}' and GROUPE_NAME='admin' and USER_DELETED='0'"; } else { $qry = "select * from USER where USER_LOGIN_NAME='{$userName}' and USER_DELETED='0'"; } return BaseContainer::getEntity($qry); }
function getDefaultCss($css_name) { $qry = "select * from LAYOUT inner join CSS using(CSS_NAME) where CSS.CSS_NAME='{$css_name}'"; return BaseContainer::getEntity($qry); }
function deleteEntity($id) { return BaseContainer::deleteEntity('LOG', 'LOG_ID', $id, true); }
function trashItemEntity($pkeyVal) { $qry = "update ITEM set ITEM_DELETED='1' where ITEM_NAME='{$pkeyVal}'"; return BaseContainer::trashEntity($qry); }
function trashEntity($pkeyVal) { $qry = "update PAGE set PAGE_DELETED='1' where PAGE_NAME='{$pkeyVal}'"; return BaseContainer::trashEntity($qry); }
public function FunambolContactContainer() { BaseContainer::BaseContainer(); }
/** * @access protected * @param string $key * @param string $fieldName */ protected function _setValueToBuffer($fieldName, $fieldVame) { if ($this->_currentContainer->isValueSet($key)) { $this->_buffer[] = $fieldName . ' = ' . $fieldVame; } }
function trashEntity($pkeyVal) { $qry = "update USER set USER_DELETED='1' where USER_LOGIN_NAME='{$pkeyVal}'"; return BaseContainer::trashEntity($qry); }