for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dynamic\Elements\Model;
use Dynamic\Elements\Elements\ElementTestimonials;
use SilverStripe\ORM\DataObject;
/**
* Class TestimonialCategory
* @package Dynamic\Elements\Model
*
* @property string $Title
*/
class TestimonialCategory extends DataObject
{
* @var string
private static $singular_name = 'Testimonial Category';
$singular_name
private static $plural_name = 'Testimonial Categories';
$plural_name
private static $table_name = 'TestimonialCategory';
$table_name
* @var array
private static $db = [
$db
'Title' => 'Varchar(255)',
];
private static $belongs_many_many = [
$belongs_many_many
'Testimonials' => Testimonial::class,
'TestimonialElements' => ElementTestimonials::class,
* @param null $member
$member
null
* @param array $context
* @return bool
public function canCreate($member = null, $context = [])
return Testimonial::singleton()->canCreate($member, $context);
}
public function canEdit($member = null)
return Testimonial::singleton()->canEdit($member);
public function canDelete($member = null)
return Testimonial::singleton()->canDelete($member);
public function canView($member = null)
return true;