コード例 #1
0
 /**
  * @param string $json_argument_array
  * @return integer
  * @throws BaseUserAccessDeniedException
  */
 public static function count_registry($json_argument_array)
 {
     global $user;
     if ($user->is_admin()) {
         return System_Wrapper::count_base_registry();
     } else {
         throw new BaseUserAccessDeniedException();
     }
 }
コード例 #2
0
 /**
  * @return integer
  * @throws BaseUserAccessDeniedException
  */
 public static function count_includes()
 {
     global $user;
     if ($user->is_admin()) {
         return System_Wrapper::count_base_include();
     } else {
         throw new BaseUserAccessDeniedException();
     }
 }