Copied!
CloneableInstantiable
Methods
public Maknz\Slack\Payload::__construct(array $attributes)
 

Instantiate a new payload.

  • param array $attributes
public static Maknz\Slack\BlockElement::factory( $attributes)
 

Create a Block element from a keyed array of attributes.

  • param mixed $attributes
  • return \BlockElement
  • throws \InvalidArgumentException
public Maknz\Slack\BlockElement\Confirmable::getActionId()
 

Get the element's action identifier.

  • return string
public Maknz\Slack\BlockElement\Confirmable::getConfirm()
 

Get the confirmation object.

  • return \Maknz\Slack\Object\Confirmation
public getDefaultToCurrentConversation()
 

Get whether to default to the current conversation.

  • return bool
public getFilter()
 

Get the filter for the list of options.

  • var \Maknz\Slack\Object\Filter
public getInitialConversation()
 

Get the initially selected conversation.

  • return string
public Maknz\Slack\BlockElement\AbstractDynamicSelect::getPlaceholder()
 

Get the placeholder.

  • return \Maknz\Slack\BlockElement\Text
public Maknz\Slack\BlockElement::getType()
 

Get the block type.

  • return string
public Maknz\Slack\BlockElement\RespondableSelect::isResponseUrlEnabled()
 

Get whether to include a response URL in submission payload.

  • return bool
public Maknz\Slack\BlockElement::isValidFor(Maknz\Slack\Block $block)
 

Check if an element is valid for a Block.

  • param \Block $block
  • return bool
public Maknz\Slack\BlockElement\Confirmable::setActionId( $actionId)
 

Set the element's action identifier.

  • param string $actionId
  • return $this
public Maknz\Slack\BlockElement\Confirmable::setConfirm( $confirm)
 

Set the confirmation object.

  • param mixed $confirm
  • return $this
  • throws \InvalidArgumentException
public setDefaultToCurrentConversation( $defaultToCurrentConversation)
 

Set whether to default to the current conversation.

  • param string $defaultToCurrentConversation
  • return $this
public setFilter( $filter)
 

Set the filter for the list of options.

  • param mixed $filter
  • return $this
  • throws \InvalidArgumentException
public setInitialConversation( $initialConversation)
 

Set the initially selected conversation.

  • param string $initialConversation
  • return $this
  • throws \InvalidArgumentException
public Maknz\Slack\BlockElement\AbstractDynamicSelect::setPlaceholder( $placeholder)
 

Set the placeholder.

  • param mixed $placeholder
  • return $this
  • throws \InvalidArgumentException
public Maknz\Slack\BlockElement\RespondableSelect::setResponseUrlEnabled( $enabled = true)
 

Set whether to include a response URL in submission payload.

  • param bool $enabled
  • return $this
public toArray()
 

Convert the block to its array representation.

  • return array
Properties
protected Maknz\Slack\BlockElement\Confirmable::$action_id = NULL
 

Action triggered when the element is interacted with.

  • var string
protected static $availableAttributes = ['placeholder' => 'placeholder', 'action_id' => 'action_id', 'initial_conversation' => 'initial_conversation', 'default_to_current_conversation' => 'default_to_current_conversation', 'confirm' => 'confirm', 'response_url_enabled' => 'response_url_enabled', 'filter' => 'filter']
 

Internal attribute to property map.

  • var array
protected Maknz\Slack\BlockElement\Confirmable::$confirm = NULL
 

Confirmation object.

  • var \Maknz\Slack\Object\Confirmation
protected $default_to_current_conversation = false
 

Whether to initially select the current conversation.

  • var bool
protected $filter = NULL
 

A filter for the list of options.

  • var \Maknz\Slack\Object\Filter
protected $initial_conversation = NULL
 

The initially selected conversation.

  • var string
protected Maknz\Slack\BlockElement\AbstractDynamicSelect::$placeholder = NULL
 

Select placeholder.

  • var \Maknz\Slack\BlockElement\Text
protected Maknz\Slack\BlockElement\RespondableSelect::$response_url_enabled = false
 

Whether to include a response URL in submission payload.

  • var bool
protected $type = 'conversations_select'
 

Block type.

  • var string
protected static Maknz\Slack\BlockElement::$validFor = ['button' => ['Button', ['section', 'actions']], 'checkboxes' => ['Checkboxes', ['section', 'actions', 'input']], 'datepicker' => ['DatePicker', ['section', 'actions', 'input']], 'timepicker' => ['Timepicker', ['section', 'actions', 'input']], 'image' => ['Image', ['section', 'context']], 'multi_static_select' => ['MultiStaticSelect', ['section', 'input']], 'multi_external_select' => ['MultiExternalSelect', ['section', 'input']], 'multi_users_select' => ['MultiUsersSelect', ['section', 'input']], 'multi_conversations_select' => ['MultiConversationsSelect', ['section', 'input']], 'multi_channels_select' => ['MultiChannelsSelect', ['section', 'input']], 'overflow' => ['Overflow', ['section', 'actions']], 'plain_text_input' => ['TextInput', ['input']], 'radio_buttons' => ['RadioButtons', ['section', 'actions', 'input']], 'static_select' => ['StaticSelect', ['section', 'actions', 'input']], 'external_select' => ['ExternalSelect', ['section', 'actions', 'input']], 'users_select' => ['UsersSelect', ['section', 'actions', 'input']], 'conversations_select' => ['ConversationsSelect', ['section', 'actions', 'input']], 'channels_select' => ['ChannelsSelect', ['section', 'actions', 'input']], 'plain_text' => ['Text', ['context']], 'mrkdwn' => ['Text', ['context']]]
 

List of blocks each element is valid for.

  • var array
Methods
protected Maknz\Slack\Payload::fillProperties(array $attributes) : self
 
  • param array $attributes
  • return $this
Properties
protected static $availableAttributes = ['placeholder' => 'placeholder', 'action_id' => 'action_id', 'initial_conversation' => 'initial_conversation', 'default_to_current_conversation' => 'default_to_current_conversation', 'confirm' => 'confirm', 'response_url_enabled' => 'response_url_enabled', 'filter' => 'filter']
 

Internal attribute to property map.

  • var array
protected static Maknz\Slack\BlockElement::$validFor = ['button' => ['Button', ['section', 'actions']], 'checkboxes' => ['Checkboxes', ['section', 'actions', 'input']], 'datepicker' => ['DatePicker', ['section', 'actions', 'input']], 'timepicker' => ['Timepicker', ['section', 'actions', 'input']], 'image' => ['Image', ['section', 'context']], 'multi_static_select' => ['MultiStaticSelect', ['section', 'input']], 'multi_external_select' => ['MultiExternalSelect', ['section', 'input']], 'multi_users_select' => ['MultiUsersSelect', ['section', 'input']], 'multi_conversations_select' => ['MultiConversationsSelect', ['section', 'input']], 'multi_channels_select' => ['MultiChannelsSelect', ['section', 'input']], 'overflow' => ['Overflow', ['section', 'actions']], 'plain_text_input' => ['TextInput', ['input']], 'radio_buttons' => ['RadioButtons', ['section', 'actions', 'input']], 'static_select' => ['StaticSelect', ['section', 'actions', 'input']], 'external_select' => ['ExternalSelect', ['section', 'actions', 'input']], 'users_select' => ['UsersSelect', ['section', 'actions', 'input']], 'conversations_select' => ['ConversationsSelect', ['section', 'actions', 'input']], 'channels_select' => ['ChannelsSelect', ['section', 'actions', 'input']], 'plain_text' => ['Text', ['context']], 'mrkdwn' => ['Text', ['context']]]
 

List of blocks each element is valid for.

  • var array
Methods
public static Maknz\Slack\BlockElement::factory( $attributes)
 

Create a Block element from a keyed array of attributes.

  • param mixed $attributes
  • return \BlockElement
  • throws \InvalidArgumentException
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration