You are here

mobile_tools_spaces.inc in Mobile Tools 7.3

Same filename and directory in other branches
  1. 7.2 plugins/mobile_tools_spaces.inc

Spaces plugin implementation for Mobile Tools device groups

@author Mathew Winstone <mwinstone@coldfrontlabs.ca>

File

plugins/mobile_tools_spaces.inc
View source
<?php

/**
 * @file
 * Spaces plugin implementation for Mobile Tools device groups
 *
 * @author Mathew Winstone <mwinstone@coldfrontlabs.ca>
 */

/**
 * Mobile Tools integration for Spaces.
 */
class space_mobile_tools extends space_type_purl {
  var $device = NULL;

  /**
   * Constructor
   */
  function __construct($type, $id = NULL) {
    parent::__construct($type, $id);
  }

  /**
   * Implementation of space->title().
   */
  function title() {
    return 'Mobile Tools Space';
  }

  /**
   * Override of activate().
   */
  function activate() {
    if (parent::activate()) {

      // Add configured options
      // @todo enable configured space settings
      return TRUE;
    }
    return FALSE;
  }

  /**
   * Override of load().
   */
  function load() {
    return TRUE;
  }

  /**
   * Implementation of space->router().
   */
  function router($op, $object = NULL, $is_active = TRUE) {
    switch ($op) {
      case 'init':
        return;
    }
  }

}

Classes

Namesort descending Description
space_mobile_tools Mobile Tools integration for Spaces.