WordPress at Your Fingertips
class is not described

Composer\Installers

OntoWikiInstaller{} WC 1.0

No Hooks.

Return

null. Nothing.

Usage

$OntoWikiInstaller = new OntoWikiInstaller();
// use class methods

Methods

  1. inflectPackageVars($vars)

Code of OntoWikiInstaller{} WC 5.5.2

<?php
class OntoWikiInstaller extends BaseInstaller
{
    protected $locations = array(
        'extension' => 'extensions/{$name}/',
        'theme' => 'extensions/themes/{$name}/',
        'translation' => 'extensions/translations/{$name}/',
    );

    /**
     * Format package name to lower case and remove ".ontowiki" suffix
     */
    public function inflectPackageVars($vars)
    {
        $vars['name'] = strtolower($vars['name']);
        $vars['name'] = preg_replace('/.ontowiki$/', '', $vars['name']);
        $vars['name'] = preg_replace('/-theme$/', '', $vars['name']);
        $vars['name'] = preg_replace('/-translation$/', '', $vars['name']);

        return $vars;
    }
}