/** * @see JDeveloperCreate */ public function write($path = '') { if ($path == '') { $path = $this->templateFile; $path = str_replace(".", DS, JFile::stripExt($path)) . "." . JFile::getExt($path); $path = str_replace('#name#', $this->item->name, $path); $path = str_replace('#version#', $this->item->version, $path); $path = $this->createDir . "/" . $path; $path = strtolower($path); } return parent::write(strtolower($path)); }
/** * @see JDeveloperCreate */ public function write($path = '') { if ($path == '') { $path = $this->filePath; $path = str_replace(".", DIRECTORY_SEPARATOR, JFile::stripExt($path)) . "." . JFile::getExt($path); $path = str_replace('component', $this->component->name, $path); $path = str_replace('install' . DS . 'mysql' . DS . 'utf8', 'install.mysql.utf8', $path); $path = str_replace('uninstall' . DS . 'mysql' . DS . 'utf8', 'uninstall.mysql.utf8', $path); $path = str_replace('view' . DS . 'feed', 'view.feed', $path); $path = str_replace('view' . DS . 'html', 'view.html', $path); $path = str_replace('version', $this->component->version, $path); $path = $this->createDir . "/" . $path; } return parent::write(strtolower($path)); }
/** * @see JDeveloperCreate */ public function write($path = '') { if ($path == '') { $path = $this->filePath; $path = str_replace(".", DIRECTORY_SEPARATOR, JFile::stripExt($path)) . "." . JFile::getExt($path); $path = str_replace('component', $this->component->name, $path); $path = str_replace('view' . DS . 'feed', 'view.feed', $path); $path = str_replace('view' . DS . 'html', 'view.html', $path); $path = str_replace('plural', $this->table->plural, $path); $path = str_replace('singular', $this->table->singular, $path); $path = $this->createDir . "/" . $path; } return parent::write(strtolower($path)); }
/** * @see JDeveloperCreate */ public function write($path = '') { return parent::write(strtolower($path)); }
/** * @see JDeveloperCreate */ public function write($path = '') { if ($path == '') { $path = $this->templateFile; $path = str_replace(".", DS, JFile::stripExt($path)) . "." . JFile::getExt($path); $path = preg_replace('/module/', 'mod_' . strtolower($this->item->name), $path); $path = $this->createDir . "/" . $path; $path = strtolower($path); } return parent::write($path); }