Project

General

Profile

Actions

Feature proposal #5295

closed

Implement format function substitution to execute an object function

Added by krileon almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
27 May 2015
Due date:
% Done:

100%

Estimated time:

Description

Implement a substitution that allows an object function to be called. This way utility functions on an object like grabbing mimetype or URL that are used in CB Gallery can be called from CB Auto Actions.

Actions #1

Updated by krileon almost 9 years ago

  • % Done changed from 0 to 30

Partially implemented for external classes/objects. Example usage.

[cb:parse function="getOperatorTitle" class="cbautoactionsClass" operator="11" /]

All parameters excluding function and class are sent to the function in the order that they're used in the substitution. So operator (can be named whatever you want actually, etc var1) is sent to the function getOperatorTitle of the cbautoactionsClass class.

Still needs to be upgraded to support a class of "self" for the trigger object and class of "var1-10" so it can use var1-10 as the object allowing variable function calls.

Actions #2

Updated by krileon almost 9 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 30 to 100
Actions #3

Updated by krileon almost 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF