Esempio n. 1
0
 /**
  * A PHP5-style constructor that can be used to perform common
  * class instantiation by children classes.
  *
  * @param array $aParams An array of parameters. The array should
  *                       be indexed by the name of object variables,
  *                       with the values that those variables should
  *                       be set to. For example, the parameter:
  *                       $aParams = array('foo' => 'bar')
  *                       would result in $this->foo = bar.
  */
 function __construct($aParams)
 {
     // Set the output type & template directory for targeting statistcs
     $this->outputType = 'targetingHistory';
     $this->templateDir = MAX_PATH . '/lib/OA/Admin/Statistics/Targeting/themes/';
     // Get list order and direction
     $this->listOrderField = MAX_getStoredValue('listorder', 'key');
     $this->listOrderDirection = MAX_getStoredValue('orderdirection', 'down');
     // Ensure the history class is prepared
     $this->useHistoryClass = true;
     // Disable graphs in targeting pages
     $this->aGraphData = array('noGraph' => true);
     parent::__construct($aParams);
     // Store the preferences
     $this->aPagePrefs['listorder'] = $this->listOrderField;
     $this->aPagePrefs['orderdirection'] = $this->listOrderDirection;
 }