DataTables Editor SSP Method

DataTables Editor SSP Method

bbrindzabbrindza Posts: 192Questions: 42Answers: 1

Give this variable...

$userProfile = $_SESSION['userInfo']['profile'];

What is the method a need in my Field instance of the ssp PHP script that would set the column on insert or update with the $userProfile?

This is the column in my Field instance

Field::inst('UPDATED_BY'),

This question has accepted answers - jump to:

Answers

  • allanallan Posts: 54,181Questions: 1Answers: 8,456 Site admin
    Answer ✓

    The Field->setValue() method is what you want here:

    Field::inst('UPDATED_BY')
      ->setValue( $userProfile ),
    

    Allan

  • allanallan Posts: 54,181Questions: 1Answers: 8,456 Site admin
    Answer ✓

    p.s. The full PHP library reference docs are available here.

  • bbrindzabbrindza Posts: 192Questions: 42Answers: 1

    Thank you Allan.

Sign In or Register to comment.