예제 #1
0
 public function __construct(Pongo $pongo, Media $media, Image $image)
 {
     $this->image = $image;
     $this->media = $media;
     $this->thumb = $pongo->system('thumb');
     $this->image_quality = $pongo->settings('image_quality');
     $this->upload_path = $pongo->settings('upload_path') . 'img';
 }
예제 #2
0
파일: Access.php 프로젝트: pongocms/cms
 /**
  * Get max level role available
  * 
  * @return integer
  */
 public function roleMaxLevel()
 {
     return max(\Pongo::system('roles'));
 }