Location: PHPKode > projects > Stratos > stratos-1.0rc1/plugins/StratosAuth/info.php
<?php

// ------------------------------------------------------------
// Stratos PHP Framework
// Copyright (c) 2006-2007 Sephira Software, LLC
// 
// This file is subject to the Stratos PHP Framework license
// which you should have received along with this file. The
// license is also accessible on the web at the following URI:
//   http://www.stratosframework.com/wiki/Manual/License
// If you did not receive a copy of the Stratos PHP Framework
// license or you are unable to obtain it through the web,
// please send an e-mail to hide@address.com so a copy
// can be sent to you.
// ------------------------------------------------------------

/**
 * This file contains the StratosAuth plugin info used by Stratos.
 * 
 * @author Joshua Carnett
 * @copyright Copyright (c) 2006-2007 Sephira Software, LLC
 * @license http://www.stratosframework.com/wiki/Manual/License
 * @package StratosAuth
 */

$info = array(
    'name' => 'StratosAuth',
    'control-panel' => true,
    'author' => 'Joshua Carnett',
    'description' => '',
    'dependencies' => array(
        0 => 'StratosData'
    ),
    'default-config' => array(
        'driver' => 'LoginForm',
        'driver-conf' => array(),
        'anonymous-role-id' => 1,
        'logged-in-role-id' => 2,
        'super-role-id' => 3,
        'dataset' => ''
    ),
    'always-unprotected' => array(
        'StratosAuth/login',
        'StratosAuth/logout',
        'StratosAuth/error',
        'StratosAuth/LoginForm/login',
        'Stratos/Request/getJSON',
        'Stratos/Request/getOutput',
        'Stratos/Request/getPHPExport',
        'Stratos/Request/getPHPSerialized',
        'Stratos/Request/getString',
        'Stratos/Request/getWDDX',
        'Stratos/notFound'
    ),
    'dataobjects' => array(
        'Action' => array(
            'name' => 'Action',
            'plural-name' => 'Actions',
            'table' => 'actions',
            'sequence' => 'action_id_seq',
            'cache' => 'default',
            'properties' => array(
                'action_id' => array(
                    'name' => 'action_id',
                    'primary' => true,
                    'proper-name' => 'ActionId',
                    'references' => '',
                )
            )
        ),
        'Role' => array(
            'name' => 'Role',
            'plural-name' => 'Roles',
            'table' => 'roles',
            'sequence' => 'role_id_seq',
            'cache' => 'default',
            'properties' => array(
                'role_id' => array(
                    'name' => 'role_id',
                    'primary' => true,
                    'proper-name' => 'RoleId',
                    'references' => ''
                )
            )
        ),
        'RoleAction' => array(
            'name' => 'RoleAction',
            'plural-name' => 'RoleActions',
            'table' => 'role_actions',
            'sequence' => '',
            'cache' => 'default',
            'properties' => array(
                'role_id' => array(
                    'name' => 'role_id',
                    'primary' => true,
                    'proper-name' => 'RoleId',
                    'references' => 'Role'
                ),
                'action_id' => array(
                    'name' => 'action_id',
                    'primary' => true,
                    'proper-name' => 'ActionId',
                    'references' => 'Action'
                )
            )
        ),
        'UserRole' => array(
            'name' => 'UserRole',
            'plural-name' => 'UserRoles',
            'table' => 'user_roles',
            'sequence' => '',
            'cache' => 'null',
            'properties' => array(
                'user_id' => array(
                    'name' => 'user_id',
                    'primary' => true,
                    'proper-name' => 'UserId',
                    'references' => 'User'
                ),
                'role_id' => array(
                    'name' => 'role_id',
                    'primary' => true,
                    'proper-name' => 'RoleId',
                    'references' => 'Role'
                )
            )
        ),
        'UserProperty' => array(
            'name' => 'UserProperty',
            'plural-name' => 'UserProperties',
            'table' => 'user_properties',
            'sequence' => '',
            'cache' => 'null',
            'properties' => array(
                'user_id' => array(
                    'name' => 'user_id',
                    'primary' => true,
                    'proper-name' => 'UserId',
                    'references' => 'User'
                ),
                'name' => array(
                    'name' => 'name',
                    'primary' => true,
                    'proper-name' => 'Name',
                    'references' => ''
                )
            )
        ),
        'UserSession' => array(
            'name' => 'UserSession',
            'plural-name' => 'UserSessions',
            'table' => 'user_sessions',
            'sequence' => '',
            'cache' => 'null',
            'properties' => array(
                'user_id' => array(
                    'name' => 'user_id',
                    'primary' => true,
                    'proper-name' => 'UserId',
                    'references' => 'User'
                ),
                'token' => array(
                    'name' => 'token',
                    'primary' => true,
                    'proper-name' => 'Token',
                    'references' => ''
                )
            )
        ),
        'User' => array(
            'name' => 'User',
            'plural-name' => 'Users',
            'table' => 'users',
            'sequence' => 'user_id_seq',
            'cache' => 'null',
            'properties' => array(
                'user_id' => array(
                    'name' => 'user_id',
                    'primary' => true,
                    'proper-name' => 'UserId',
                    'references' => ''
                )
            )
        )
    )
);

?>
Return current item: Stratos