Class: dataSection

Attributes:
Inherits:
Implements:

Contents:

Introduction

A dataSection object is the core of any output that resides in a site. The purpose of it is to allow common dataController functions to be put into one place so that code doesn't need to be repeated. An example of this could be for user logins. If you wanted, you could create a class which extends the dataSection class called 'Section_Authenticated' which would ensure that someone was logged in before they were able to view a page. If they weren't logged in, you could automatically redirect them to another page in the website for them to login

Meta Data

authorBashkim Isai
packageOutput

Constants

There are no constants defined for this class.

Properties

Methods

Also See

Class Syntax

In file D:\oblib-core\php\oblib\dataContent\dataSection.section.php between lines 59 and 81.

<?php
 
    
/**
     * A dataSection object is the core of any output that resides in a site.
     * The purpose of it is to allow common dataController functions to be put
     * into one place so that code doesn't need to be repeated.
     *
     * An example of this could be for user logins. If you wanted, you could create
     * a class which extends the dataSection class called 'Section_Authenticated'
     * which would ensure that someone was logged in before they were able to view
     * a page. If they weren't logged in, you could automatically redirect them to
     * another page in the website for them to login
     *
     * @author    Bashkim Isai
     * @package    Output
     * @see        Class [data]
     * @see        Class [dataObject]
     * @see        Class [dataController]
     */

    
class dataSection extends dataObject
    
{
        
        
/**
         * Constructs the basics for the dataSection
         * 
         * @see        Class [data]
         * @return    Void
         */
        
        
final function __construct ($cntController)
        {
            
parent::__construct ('Section');
            
$this->___Push ($cntController);
            
            if (
method_exists ($this'___construct'))
            {
                
$this->___construct ();
            }
            
            
$this->___setAttribute ('type'get_class ($this));
        }
    }

?>