Example #1
0
 public function getCacheKey($additional = '')
 {
     if ($key = parent::getCacheKey($additional)) {
         return $key . ($this->newsUrlId ?: 0);
     } else {
         return false;
     }
 }
Example #2
0
 public function getCacheKey($additional = '')
 {
     if ($key = parent::getCacheKey($additional)) {
         return $key . ($this->newsCategory ? $this->newsCategory->getKey() : 0);
     } else {
         return false;
     }
 }
Example #3
0
 public function getCacheKey($additional = '')
 {
     if ($key = parent::getCacheKey($additional)) {
         return $key . implode('', $this->getCategoryIds()) . $this->getNewsCategoryUrlPattern() . $this->getPerPage() . $this->getPage() . $this->getIgnorePage();
     } else {
         return false;
     }
 }
Example #4
0
 /**
  * @method setConfig
  * Set config of widget
  * @param {Array} $config
  * @member Telenok.Account.Widget.Login.Controller
  * @return {Telenok.Account.Widget.Login.Controller}
  */
 public function setConfig($config = [])
 {
     $config = collect($config)->all();
     parent::setConfig(array_merge($config, ['route_login' => array_get($config, 'route_login', $this->routeLogin), 'login_username' => array_get($config, 'login_username', $this->loginUsername), 'max_login_attempts' => array_get($config, 'max_login_attempts', $this->maxLoginAttempts), 'lockout_time' => array_get($config, 'lockout_time', $this->lockoutTime), 'guard' => array_get($config, 'guard', $this->guard), 'redirect_path' => array_get($config, 'redirect_path', $this->redirectPath), 'socialite' => array_get($config, 'socialite', $this->socialite)]));
     $this->routeLogin = $this->getConfig('route_login');
     $this->loginUsername = $this->getConfig('login_username');
     $this->maxLoginAttempts = $this->getConfig('max_login_attempts');
     $this->lockoutTime = $this->getConfig('lockout_time');
     $this->guard = $this->getConfig('guard');
     $this->redirectPath = $this->getConfig('redirect_path');
     $this->socialite = $this->getConfig('socialite');
     return $this;
 }