This is a collection of file and live templates used for speeding up SilverStripe development.
Place the files into the correct folders in your configuration path and restart PHPStorm.
~/.WebIdeXX/config
~/Library/Preferences/WebIdeXX
<User home>\.WebIdeXX/config
<User home> in WindowsXP is C:\Documents and Settings\<User name>\ and in Windows Vista it is C:\Users\<User name>\
Simply select the template you want to use when creating a new file.
SS Page: Empty Page and Controller classesSS Form: Opinionated Form scaffold classSS DataObject: Empty DataObject classSS DataExtension: Empty DataExtension classSS ModelAdmin: ModelAdmin scaffold classSS SapphireTest: SapphireTest scaffold class
Tab complete abbreviations of common SilverStripe static properties and methods.
For example db expands to:
/**
* List of database fields. {@link DataObject::$db}
*
* @var array
*/
private static $db = array(
'' => ''
);And cms expands to:
/**
* Returns a FieldList with which to create the main editing form. {@link DataObject::getCMSFields()}
*
* @return FieldList The fields to be displayed in the CMS.
*/
public function getCMSFields()
{
$fields = parent::getCMSFields();
return $fields;
}