Project

General

Profile

Actions

Feature proposal #5398

closed

Implement support for substitution function object value

Added by krileon over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
19 July 2015
Due date:
% Done:

100%

Estimated time:

Description

When calling a substitution function (e.g. ->parent() or ->category()) implement support for returning a variable of the object if it's an object. So for example if it's an object or an array add support to pull one of its values. This will be needed for next CB GroupJive as it won't include a bunch of unnecessary objects with its trigger anymore.

Actions #1

Updated by krileon about 9 years ago

  • Status changed from Assigned to Resolved
  • Target version changed from 7.0.0 to 6.3.2
  • % Done changed from 0 to 100

You can now use method="METHOD" to call an objects method. Basically subfunction support. So example as follows.

[cb:parse function="group" class="var1" method="get" get="user_id" /]

Would be the same as the following.

$var1->group()->get( 'user_id' )

Actions #2

Updated by krileon about 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF