setOptions($options); $this->_pluralModuleName = $this->_moduleName . (substr($this->_moduleName, -2) == 'ss' ? 'es' : substr($this->_moduleName, -1) != 's' ? 's' : ''); return $this; } public function getContext() { $classGenerator = new ClassGenerator(); $extendedClass = (($this->_useNamespace) ? '\\' : '') . 'Qs_Db_Obj'; $classGenerator->setName($this->_getClassName()) ->addProperties([ new Generator\PropertyGenerator( '_tableAlias', $this->_getTableAlias(), Generator\AbstractMemberGenerator::FLAG_PROTECTED ), new Generator\PropertyGenerator( '_fileFields', ['image'], Generator\AbstractMemberGenerator::FLAG_PROTECTED ), ]) ->setExtendedClass($extendedClass) ->setAbstract(true); return $this->_generateContext($classGenerator); } }