Class Controller

Interface ApplicationAwareInterface This interface declares awareness of the concrete5 application.

Concrete\Core\Controller\AbstractController implements Concrete\Core\Application\ApplicationAwareInterface
Extended by Concrete\Core\Block\BlockController
Extended by Concrete\Block\Survey\Controller
Namespace: Concrete\Block\Survey
Package: Concrete\Core\Application
Located at blocks/survey/controller.php

Methods summary

public
public string
# getBlockTypeDescription( )

Used for localization. If we want to localize the name/description we have to include this.

public string
# getBlockTypeName( )

Returns the name of the block type.

public
public
public
# delete( )

Automatically run when a block is deleted. This removes the special data from the block's specific database table. If a block needs to do more than this this method should be overridden.

public
# action_form_save_vote( $bID = false )
public
public
# hasVoted( )
public BlockRecord
# duplicate( integer $newBID )

Automatically run when a block is duplicated. This most likely happens when a block is edited: a block is first duplicated, and then presented to the user to make changes.

public
# save( array $args )

Run when a block is added or edited. Automatically saves block data against the block's database table. If a block needs to do more than this (save to multiple tables, upload files, etc... it should override this.

public
# displayChart( $bID, $cID )

Properties summary

public array $options
# array()
protected string $btTable
# 'btSurvey'
protected string $btInterfaceWidth
# "420"
protected string $btInterfaceHeight
# "400"
protected array $btExportTables
# array('btSurvey', 'btSurveyOptions', 'btSurveyResults')