Public Member Functions | Public Attributes | Protected Member Functions

PagesController Class Reference

Inheritance diagram for PagesController:
AppController

List of all members.

Public Member Functions

 changeLang ($lang=null)
 printme ()
 Print an object.
 showObjects ($main_object_id=null, $relation=null, $main_object_type_id=null, $objectType="related")
 called via ajax Show list of objects for relation, append to section,...
 loadObjectToAssoc ($main_object_id=null, $objectType=null, $tplname=null, $module=null)
 called via ajax load objects selected to main view to prepare association form
 loadUsersGroupsAjax ()
 load user or group list
 saveNote ()
 save editor note if it fails throw BeditaAjaxException managed like json object
 loadNote ()
 load an editor note
 deleteNote ()
 addLink ()
 Add Link with Ajax...
 updateEditor ($objectId)
 Ajax update of current object editors/viewers.
 showAjaxMessage ()
 revision ($id, $rev)
 Show object revision information (specific revision).
 tree ($parentid)
 export ($objectId)
 Ajax modal for export.
 import ($objectId)
 saveQuickItem ()
 save quick item used in modal window to save quickly objects to associate to main object
 similarCards ()
 Returns a JSON object with an array of "similar" Cards to the given User data, excluding Cards already related to another User.
 gotoObjectById ()
 Go to a specific object by Id or nickname as POST parameters.

Public Attributes

 $uses = array()
 $helpers = array('BeTree')
 $components

Protected Member Functions

 beforeCheckLogin ()
 convienience method to do operations before login check for example you could set AppController::skipCheck to true avoiding user session check
 forward ($action, $result)
 Controller forward.

Detailed Description

Version:
$Revision$ $LastChangedBy$ $LastChangedDate$

$Id$

Definition at line 31 of file pages_controller.php.


Member Function Documentation

PagesController::export ( objectId  ) 

Ajax modal for export.

Parameters:
int $objectId - object id / all TODO

Definition at line 560 of file pages_controller.php.

PagesController::forward ( action,
result 
) [protected]

Controller forward.

See also:
AppController::forward()

Reimplemented from AppController.

Definition at line 756 of file pages_controller.php.

PagesController::gotoObjectById (  ) 

Go to a specific object by Id or nickname as POST parameters.

Returns:
void

Definition at line 729 of file pages_controller.php.

PagesController::loadObjectToAssoc ( main_object_id = null,
objectType = null,
tplname = null,
module = null 
)

called via ajax load objects selected to main view to prepare association form

Parameters:
int|null $main_object_id Object ID of main object, used to exclude association with itself.
string|null $objectType Object type, used to filter.
string|null $tplname Template name without '.tpl' extension. If it contains dots, they will be replaced with `/`, i.e. `areas.inc.list_object` becomes `areas/inc/list_object.tpl`
string|null $module Module name, used to search template in plugin modules view folders.

Definition at line 335 of file pages_controller.php.

PagesController::revision ( id,
rev 
)

Show object revision information (specific revision).

Parameters:
int $id, object id
int $rev, revision number

Definition at line 539 of file pages_controller.php.

References AppController::viewRevision().

PagesController::saveQuickItem (  ) 

save quick item used in modal window to save quickly objects to associate to main object

Returns:
void

Definition at line 578 of file pages_controller.php.

PagesController::showObjects ( main_object_id = null,
relation = null,
main_object_type_id = null,
objectType = "related" 
)

called via ajax Show list of objects for relation, append to section,...

Parameters:
int $main_object_id, object id of main object used to exclude association with itself
string $relation, relation type
int $main_object_type_id, object_type_id of main object. Used if $main_object_id is not defined or empty
string $objectType name of objectType to filter. It has to be a string that defined a group of type defined in bedita.ini.php (i.e. 'related' 'leafs',...) Used if $this->parmas["form"]["objectType"] and $relation are empty

Definition at line 105 of file pages_controller.php.

References BeLib::getObject().

PagesController::similarCards (  ) 

Returns a JSON object with an array of "similar" Cards to the given User data, excluding Cards already related to another User.

A Card is considered "similar" to a User if any of the following conditions are `true`: 1. `Card.email = User.email` 2. `Card.email2 = User.email` 3. `Card.name` is a substring of `User.realname` *AND* `Card.surname` is a substring of `User.realname`

Definition at line 681 of file pages_controller.php.

PagesController::updateEditor ( objectId  ) 

Ajax update of current object editors/viewers.

Parameters:
int $objectId - object id

Definition at line 515 of file pages_controller.php.


Member Data Documentation

PagesController::$components
Initial value:
 array(
        'BeUploadToObj',
        'BeSecurity' => array(
            'disableActions' => array('loadNote', 'loadObjectToAssoc', 'loadUsersGroupsAjax')
        )
    )

Reimplemented from AppController.

Definition at line 35 of file pages_controller.php.


The documentation for this class was generated from the following file:
Generated on Fri Dec 11 2015 15:29:47 by Doxygen 1.7.1  BEditaBEdita 3.7 Corylus