Skip to content

Instantly share code, notes, and snippets.

@vanilla-thunder
Last active August 29, 2015 13:57
Show Gist options
  • Save vanilla-thunder/9911725 to your computer and use it in GitHub Desktop.
Save vanilla-thunder/9911725 to your computer and use it in GitHub Desktop.
PhpStorm File Template for module metadata.php
<?php
/**
* MODULE-NAME
* Copyright (C) ${YEAR} ${USER}
* info: info@your-company.com
*
* This program is free software;
* you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>
**/
/* full info about metadata: http://wiki.oxidforge.org/Features/Extension_metadata_file */
${DS}sMetadataVersion = '1.1';
${DS}aModule = array(
'id' => '',
'title' => '',
'description' => '',
'lang' => '',
'thumbnail' => '',
'version' => '0.1',
'author' => '${USER}',
'email' => '',
'url' => '',
'extend' => array(
//'parent_class' => 'path/your_class',
),
'files' => array(
//'class' => 'path/class.php',
),
'templates' => array(
//array('template.tpl' => 'path/template.tpl')
),
'events' => array(
//'onActivate' => 'class::fnc',
//'onDeactivate' => 'class::fnc'
),
'blocks' => array(
//array('template' => 'template.tpl', 'block' => 'block_name', 'file' => 'block_file.tpl'),
),
'settings' => array(
//array('group' => '', 'name' => '', 'type' => '', 'value' => '', 'constraints' => '', 'position' => 0),
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment