DataTables Editor SSP Method

DataTables Editor SSP Method

bbrindzabbrindza Posts: 299Questions: 68Answers: 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: 61,446Questions: 1Answers: 10,054 Site admin
    Answer ✓

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

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

    Allan

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    Answer ✓

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

  • bbrindzabbrindza Posts: 299Questions: 68Answers: 1

    Thank you Allan.

This discussion has been closed.