Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • None
  • system
    • base
    • caching
    • console
    • db
      • ar
      • schema
    • validators
    • web
      • actions
      • auth
      • helpers
      • widgets
        • captcha
        • pagers
  • zii
    • widgets
      • grid

Classes

  • BaseDocsMassAction
  • CommonFieldsBehavior
  • Expression
  • MassAction
  • MassAddToList
  • MassCompleteAction
  • MassMoveFileSysObjToFolder
  • MassRemoveFromList
  • MassRenameFileSysObj
  • MassUncompleteAction
  • MobileRecentItems
  • ModulePanelItem
  • NewListFromSelection
  • PanelItem
  • QuickCRUDBehavior
  • RecentItemPanelItem
  • ServiceRoutingBehavior
  • SettingsPanelItem
  • X2AddressBehavior
  • X2AuthCache
  • X2BaseListViewBehavior

Exceptions

  • TwitterFeedWidgetException
  • Overview
  • Package
  • Class
  • Tree

Class MassRenameFileSysObj

CComponent is the base class for all components.

CComponent implements the protocol of defining, using properties and events.

A property is defined by a getter method, and/or a setter method. Properties can be accessed in the way like accessing normal object members. Reading or writing a property will cause the invocation of the corresponding getter or setter method, e.g

$a=$component->text;     // equivalent to $a=$component->getText();
$component->text='abc';  // equivalent to $component->setText('abc');

The signatures of getter and setter methods are as follows,

// getter, defines a readable property 'text'
public function getText() { ... }
// setter, defines a writable property 'text' with $value to be set to the property
public function setText($value) { ... }

An event is defined by the presence of a method whose name starts with 'on'. The event name is the method name. When an event is raised, functions (called event handlers) attached to the event will be invoked automatically.

An event can be raised by calling CComponent::raiseEvent() method, upon which the attached event handlers will be invoked automatically in the order they are attached to the event. Event handlers must have the following signature,

function eventHandler($event) { ... }

where $event includes parameters associated with the event.

To attach an event handler to an event, see CComponent::attachEventHandler(). You can also use the following syntax:

$component->onClick=$callback;    // or $component->onClick->add($callback);

where $callback refers to a valid PHP callback. Below we show some callback examples:

'handleOnClick'                   // handleOnClick() is a global function
array($object,'handleOnClick')    // using $object->handleOnClick()
array('Page','handleOnClick')     // using Page::handleOnClick()

To raise an event, use CComponent::raiseEvent(). The on-method defining an event is commonly written like the following:

public function onClick($event)
{
    $this->raiseEvent('onClick',$event);
}

where <span class="php-var">$event</span> is an instance of CEvent or its child class. One can then raise the event by calling the on-method instead of CComponent::raiseEvent() directly.

Both property names and event names are case-insensitive.

CComponent supports behaviors. A behavior is an instance of IBehavior which is attached to a component. The methods of the behavior can be invoked as if they belong to the component. Multiple behaviors can be attached to the same component.

To attach a behavior to a component, call CComponent::attachBehavior(); and to detach the behavior from the component, call CComponent::detachBehavior().

A behavior can be temporarily enabled or disabled by calling CComponent::enableBehavior() or CComponent::disableBehavior(), respectively. When disabled, the behavior methods cannot be invoked via the component.

Starting from version 1.1.0, a behavior's properties (either its public member variables or its properties defined via getters and/or setters) can be accessed through the component it is attached to.

CComponent
Extended by MassAction
Extended by BaseDocsMassAction
Extended by MassRenameFileSysObj
Package: system\base
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/protected/components/X2GridView/massActions/MassRenameFileSysObj.php
Methods summary
public
# renderDialog( string $gridId, mixed $modelName )

Renders the mass action dialog, if applicable

Renders the mass action dialog, if applicable

Parameters

$gridId
string
$gridId id of grid view
$modelName

Overrides

MassAction::renderDialog()
public string
# getLabel( )

Returns

string
label to display in the dropdown list
public
# getPackages( )

Overrides

BaseDocsMassAction::getPackages()
public
# execute( array $gvSelection )

Parameters

$gvSelection
array
$gvSelection array of ids of records to perform mass action on
Methods inherited from MassAction
beforeExecute(), echoResponse(), generateSuperMassActionResponse(), getDialogId(), getFormModel(), getIdsFromSearchResults(), getJSClassParams(), getMassActionObjects(), getModelClass(), getModelDisplayName(), getResponse(), isValidAttribute(), registerPackages(), renderButton(), renderForm(), renderListItem(), superExecute(), superMassActionPasswordConfirmation()
Methods inherited from CComponent
__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()
Constants inherited from MassAction
BAD_CHECKSUM, BAD_COUNT_AND_CHECKSUM, BAD_ITEM_COUNT, SESSION_KEY_PREFIX, SESSION_KEY_PREFIX_PASS_CONFIRM
Properties summary
public boolean $hasButton false
#

$hasButton If true, mass action has a button, otherwise it is assumed that the
mass action can only be accessed from the dropdown list

$hasButton If true, mass action has a button, otherwise it is assumed that the mass action can only be accessed from the dropdown list

public boolean $allowMultiple false
#

$allowMultiple whether or not mass action should be allowed for multiple records

$allowMultiple whether or not mass action should be allowed for multiple records

Properties inherited from MassAction
$_label, $errorFlashes, $noticeFlashes, $owner, $requiresPasswordConfirmation, $responseForm, $successFlashes
X2CRM Documentation API documentation generated by ApiGen 2.8.0