/** * Returns the class name for the given collection name. * If it is mentioned in the mapping configuration, it will use * the mapping's setting for not-so-obvious mappings. This can be * configured in the application's configuration file. */ public function getClass($collectionName) { if (isset($this->mapping[$collectionName])) { $cls = $this->mapping[$collectionName]; } else { $cls = ZFE_Environment::getResourcePrefix('model') . '_' . ucfirst($collectionName); } return $cls; }