public static function var_names_from_context($classname, $pluginname = '') {
        $pluginname = trim($pluginname);
        if (!empty($pluginname)) {
            $categoryvar = $classname . '_' . $pluginname . '_category';
            $purposevar = $classname . '_' . $pluginname . '_purpose';
        } else {
            $categoryvar = $classname . '_category';
            $purposevar = $classname . '_purpose';
        }
        return [
            $purposevar,
            $categoryvar
        ];
    }
public static function var_names_from_context($classname, $pluginname = '') {
        $pluginname = trim($pluginname);
        if (!empty($pluginname)) {
            $categoryvar = $classname . '_' . $pluginname . '_category';
            $purposevar = $classname . '_' . $pluginname . '_purpose';
        } else {
            $categoryvar = $classname . '_category';
            $purposevar = $classname . '_purpose';
        }
        return [
            $purposevar,
            $categoryvar
        ];
    }
public static function var_names_from_context ( $ classname , $ pluginname = '' ) { $ pluginname = trim ( $ pluginname ) ; if ( ! empty ( $ pluginname ) ) { $ categoryvar = $ classname . '_' . $ pluginname . '_category' ; $ purposevar = $ classname . '_' . $ pluginname . '_purpose' ; } else { $ categoryvar = $ classname . '_category' ; $ purposevar = $ classname . '_purpose' ; } return [ $ purposevar , $ categoryvar ] ; }
Returns purpose and category var names from a context class name

@param string $classname The context level's class.
@param string $pluginname The name of the plugin associated with the context level.
@return string[]
Returns purpose and category var names from a context class name