Livetemplates and more for the Silverstripe framework
@see https://www.jetbrains.com/help/phpstorm/2016.1/sharing-live-templates.html
/**
* @var array
*/
private static $db = [
'$NAME$' => '$END$'
];
/**
* @var array
*/
private static $has_one = [
'$NAME$' => '$END$'
];
/**
* @var array
*/
private static $has_many = [
'$NAME$' => '$END$'
];
/**
* @var array
*/
private static $many_many = [
'$NAME$' => '$END$'
];
/**
* @param bool $includerelations
* @return array
*/
public function fieldLabels($includerelations = true)
{
$labels = parent::fieldLabels($includerelations);
$END$
return $labels;
}
public function getCMSFields()
{
$fields = parent::getCMSFields();
$END$
return $fields;
}