public function __construct($module, $user) { $db = PearDatabase::getInstance(); $this->module = $module; $this->customViewColumnList = null; $this->stdFilterList = null; $this->conditionals = array(); $this->user = $user; $this->advFilterList = null; $this->fields = array(); $this->referenceModuleMetaInfo = array(); $this->moduleNameFields = array(); $this->whereFields = array(); $this->groupType = self::$AND; $this->meta = $this->getMeta($module); $this->moduleNameFields[$module] = $this->meta->getNameFields(); $this->referenceFieldInfoList = $this->meta->getReferenceFieldDetails(); $this->referenceFieldList = array_keys($this->referenceFieldInfoList); $this->ownerFields = $this->meta->getOwnerFields(); $this->columns = null; $this->fromClause = null; $this->whereClause = null; $this->query = null; $this->conditionalWhere = null; $this->groupInfo = ''; $this->manyToManyRelatedModuleConditions = array(); $this->conditionInstanceCount = 0; $this->customViewFields = array(); }