PHP Classes

File: engine/modules/contrib/points/points.wiki.inc

Recommend this page to a friend!
  Classes of Aldo Tripiciano   Quanta CMS   engine/modules/contrib/points/points.wiki.inc   Download  
File: engine/modules/contrib/points/points.wiki.inc
Role: Example script
Content type: text/plain
Description: Example script
Class: Quanta CMS
Manage content that works without a database
Author: By
Last change:
Date: 5 years ago
Size: 420 bytes
 

Contents

Class file image Download
<?php

/**
 * @param $attributes
 * @param $usr
 * @param $string
 * @param $env
 * @return mixed
 */
function wiki_POINTS($attributes, $usr, $string, $env) {
  if (
$usr == NULL) {
   
$user = UserFactory::current($env, TRUE);
  } else {
   
$user = new User($env, $usr);
  }

   
$show = isset($attributes['show']) ? $attributes['show'] : 'current';
    return
Points::get($env, $user, $attributes['type'], $show);

 }