public function setUp()
 {
     parent::setUp();
     global $table_prefix;
     $table_prefix = 'phpbb_';
     $this->gallery_cache = new \phpbbgallery\core\cache($this->cache, $this->db, 'phpbb_gallery_albums', 'phpbb_gallery_images');
 }
 public function setUp()
 {
     parent::setUp();
     $this->gallery_cache = new \phpbbgallery\core\cache($this->cache, $this->db, 'phpbb_gallery_albums', 'phpbb_gallery_images');
     $this->gallery_user = new \phpbbgallery\core\user($this->db, $this->dispatcher, 'phpbb_gallery_users');
     // Let's build auth class
     $this->gallery_auth = new \phpbbgallery\core\auth\auth($this->gallery_cache, $this->db, $this->gallery_user, $this->user, $this->auth, 'phpbb_gallery_permissions', 'phpbb_gallery_roles', 'phpbb_gallery_users', 'phpbb_gallery_albums');
     $this->misc = $this->getMockBuilder('\\phpbbgallery\\core\\misc')->disableOriginalConstructor()->getMock();
     $this->display = new \phpbbgallery\core\album\display($this->auth, $this->config, $this->controller_helper, $this->db, $this->pagination, $this->request, $this->template, $this->user, $this->gallery_auth, $this->gallery_user, $this->misc, '/', 'php', 'phpbb_gallery_albums', 'phpbb_gallery_contests', 'phpbb_gallery_albums_track', 'phpbb_gallery_albums_modscache');
 }
 public function setUp()
 {
     parent::setUp();
     global $table_prefix;
     $table_prefix = 'phpbb_';
     $this->gallery_cache = new \phpbbgallery\core\cache($this->cache, $this->db, 'phpbb_gallery_albums', 'phpbb_gallery_images');
     $this->gallery_user = new \phpbbgallery\core\user($this->db, $this->dispatcher, 'phpbb_gallery_users');
     // Let's build auth class
     $this->gallery_auth = new \phpbbgallery\core\auth\auth($this->gallery_cache, $this->db, $this->gallery_user, $this->user, $this->auth, 'phpbb_gallery_permissions', 'phpbb_gallery_roles', 'phpbb_gallery_users', 'phpbb_gallery_albums');
 }
Exemple #4
0
 public function __construct($para = array())
 {
     if (!empty($para)) {
         $this->_table = $para['table'];
         $this->_pk = $para['pk'];
     }
     if (isset($this->_pre_cache_key) && (($ttl = getglobal('setting/memory/' . $this->_table)) !== null || ($ttl = $this->_cache_ttl) !== null) && memory('check')) {
         $this->_cache_ttl = $ttl;
         $this->_allowmem = true;
     }
     parent::__construct();
 }
 public function setUp()
 {
     parent::setUp();
     $this->gallery_config = new \phpbbgallery\core\config($this->config);
     $this->gallery_cache = new \phpbbgallery\core\cache($this->cache, $this->db, 'phpbb_gallery_albums', 'phpbb_gallery_images');
     $this->gallery_user = new \phpbbgallery\core\user($this->db, $this->dispatcher, 'phpbb_gallery_users');
     // Let's build auth class
     $this->gallery_auth = new \phpbbgallery\core\auth\auth($this->gallery_cache, $this->db, $this->gallery_user, $this->user, $this->auth, 'phpbb_gallery_permissions', 'phpbb_gallery_roles', 'phpbb_gallery_users', 'phpbb_gallery_albums');
     $this->gallery_album = new \phpbbgallery\core\album\album($this->db, $this->user, 'phpbb_gallery_albums', 'phpbb_gallery_watch', 'phpbb_gallery_contests');
     $this->gallery_image = $this->getMockBuilder('\\phpbbgallery\\core\\image\\image')->disableOriginalConstructor()->getMock();
     $this->gallery_image->method('get_status_orphan')->willReturn(3);
     // Let's build Search
     $this->gallery_search = new \phpbbgallery\core\search($this->db, $this->template, $this->user, $this->controller_helper, $this->gallery_config, $this->gallery_auth, $this->gallery_album, $this->gallery_image, $this->pagination, $this->user_loader, 'phpbb_gallery_images', 'phpbb_gallery_albums', 'phpbb_gallery_comments');
 }
 public function setUp()
 {
     parent::setUp();
     $this->album = new \phpbbgallery\core\album\album($this->db, $this->user, 'phpbb_gallery_albums', 'phpbb_gallery_watch', 'phpbb_gallery_contests');
 }
 public function setUp()
 {
     parent::setUp();
     $this->gallery_config = new \phpbbgallery\core\config($this->config);
 }
 public function setUp()
 {
     parent::setUp();
     $this->gallery_user = new \phpbbgallery\core\user($this->db, $this->dispatcher, 'phpbb_gallery_users');
 }
Exemple #9
0
 public function __construct()
 {
     parent::__construct();
     $this->log("Load Extension: Log");
 }