コード例 #1
0
ファイル: UploadedBy.php プロジェクト: boomcms/boom-core
 public function __construct($person = null)
 {
     $this->person = $person;
     if ($this->person !== null && (is_int($this->person) || ctype_digit($this->person))) {
         $this->person = PersonFacade::find($this->person);
     }
 }
コード例 #2
0
ファイル: BasePerson.php プロジェクト: robbytaylor/boom-core
 public function __construct(Request $request)
 {
     $this->request = $request;
     $this->editPerson = Person::find($this->request->route()->getParameter('id'));
 }