DataTables Editor SSP Method

DataTables Editor SSP Method

bbrindzabbrindza Posts: 222Questions: 53Answers: 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: 56,851Questions: 1Answers: 9,035 Site admin
    Answer ✓

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

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

    Allan

  • allanallan Posts: 56,851Questions: 1Answers: 9,035 Site admin
    Answer ✓

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

  • bbrindzabbrindza Posts: 222Questions: 53Answers: 1

    Thank you Allan.

This discussion has been closed.