function isFieldEncrypted($field, $table = ""){ $pSet = $this->pSet; if($table == "") $table = $this->strTableName; if(array_key_exists($table, $this->encryptedFields) && array_key_exists($field, $this->encryptedFields[$table])) return $this->encryptedFields[$table][$field]; if($table != $this->strTableName) $pSet = new ProjectSettings($table); if(!array_key_exists($table, $this->encryptedFields)) $this->encryptedFields[$table] = array(); $this->encryptedFields[$table][$field] = $pSet->isFieldEncrypted($field); return $this->encryptedFields[$table][$field]; }