fetchRow() public méthode

Render a row and send it to the client. If the row no longer exists then inform the client.
public fetchRow ( &$args, $request ) : JSONMessage
$args array
$request Request
Résultat JSONMessage JSON object.
 /**
  * @copydoc GridHandler::fetchRow()
  */
 function fetchRow($args, $request)
 {
     $json = parent::fetchRow($args, $request);
     if ($row = $this->getRequestedRow($request, $args)) {
         $galley = $row->getData();
         if ($galley->getRemoteUrl() == '' && !$galley->getFileId()) {
             $json->setEvent('uploadFile', $galley->getId());
         }
     }
     return $json;
 }