View DataObjectLinkTracking.php
<?php | |
namespace Vulcan\Common\Traits; | |
use SilverStripe\Assets\File; | |
use SilverStripe\Forms\FieldList; | |
use SilverStripe\ORM\HasManyList; | |
/** | |
* Trait DataObjectLinkTracking |
View Page.php
<?php | |
use SilverStripe\CMS\Controllers\ContentController; | |
use SilverStripe\CMS\Model\SiteTree; | |
/** | |
* Class Page | |
*/ | |
class Page extends SiteTree | |
{ |
View AbstractApiController.php
<?php | |
namespace Zanderwar\Api\Controllers; | |
use SilverStripe\Control\Controller; | |
use SilverStripe\Control\HTTPResponse; | |
use SilverStripe\Core\Config\Config; | |
use SilverStripe\Core\Convert; | |
/** |
View ModifyModelAdminGridFieldConfig.php
<?php | |
class Example extends ModelAdmin | |
{ | |
private static $url_segment = 'Example'; | |
private static $menu_title = 'Example'; | |
private static $managed_models = [ | |
Site::class |
View PopulateFormDefaults.php
<?php | |
class MyForm extends Form | |
{ | |
/** | |
* @param Customer $customer | |
* @return $this | |
*/ | |
public function setObject(DataObject $object) | |
{ |
View ips-thumbnails.html
<img src='http://placehold.it/300x300' class='ipsThumb'/> | |
<img src='http://placehold.it/300x300' class='ipsThumb ipsThumb_large'/> | |
<img src='http://placehold.it/300x300' class='ipsThumb ipsThumb_medium'/> | |
<img src='http://placehold.it/300x300' class='ipsThumb ipsThumb_small'/> | |
<img src='http://placehold.it/300x300' class='ipsThumb ipsThumb_tiny'/> |
View ips-message-alerts.html
<div class='ipsMessage ipsMessage_info'><strong>Information:</strong> Look behind you!</div> | |
<div class='ipsMessage ipsMessage_error'><strong>Danger:</strong> Seriously..... Look behind you!</div> | |
<div class='ipsMessage ipsMessage_warning'><strong>Warning:</strong> Is that a robot?!? Be careful it bites!</div> | |
<div class='ipsMessage ipsMessage_success'><strong>Success:</strong> Wow where did you get that rocket launcher! *BOOM*</div> | |
<div class='ipsMessage ipsMessage_general'><strong>General:</strong> Yay it has powered down. Thank god no one got hurt!</div> |
View ipb4-grid-example.html
<div class='ipsGrid'> | |
<div class='ipsGrid_span4'>span4</div> | |
<div class='ipsGrid_span3'>span3</div> | |
<div class='ipsGrid_span5'>span5</div> | |
</div> |
NewerOlder