示例#1
0
文件: Page.php 项目: peteryu1/october
 /**
  * Creates an instance of the object and associates it with a CMS theme.
  * @param \Cms\Classes\Theme $theme Specifies the theme the object belongs to.
  */
 public function __construct(Theme $theme = null)
 {
     parent::__construct($theme);
     $this->settingsValidationMessages = ['url.regex' => Lang::get('cms::lang.page.invalid_url')];
 }
示例#2
0
 /**
  * Creates an instance of the object and associates it with a CMS theme.
  * @param array $attributes
  */
 public function __construct(array $attributes = [])
 {
     parent::__construct($attributes);
     $this->customMessages = ['url.regex' => Lang::get('cms::lang.page.invalid_url')];
 }