コード例 #1
0
ファイル: captcha.php プロジェクト: ranrolls/ras-full-portal
 public function isPublished()
 {
     $storeId = md5(__METHOD__ . "::" . $this->id);
     if (!isset(self::$cache[$storeId])) {
         $app = JFactory::getApplication();
         if ($app->isAdmin()) {
             self::$cache[$storeId] = false;
             return self::$cache[$storeId];
         }
         self::$cache[$storeId] = parent::isPublished();
         return self::$cache[$storeId];
     }
     return self::$cache[$storeId];
 }