original_string: protected static function handler_from_record($record) {
          $classname = $record->classname;
          if (strpos($classname, '\\') !== 0) {
              $classname = '\\' . $classname;
          }
          if (!class_exists($classname)) {
              return false;
          }
  
          $handler = new $classname;
          if (isset($record->id)) {
              $handler->set_id($record->id);
          }
          $handler->set_component($record->component);
  
          // Overload fields which can be modified.
          if (isset($record->defaultexpiration)) {
              $handler->set_defaultexpiration($record->defaultexpiration);
          }
  
          if (isset($record->validateaddress)) {
              $handler->set_validateaddress($record->validateaddress);
          }
  
          if (isset($record->enabled)) {
              $handler->set_enabled($record->enabled);
          }
  
          return $handler;
      }
code: protected static function handler_from_record($record) {
          $classname = $record->classname;
          if (strpos($classname, '\\') !== 0) {
              $classname = '\\' . $classname;
          }
          if (!class_exists($classname)) {
              return false;
          }
  
          $handler = new $classname;
          if (isset($record->id)) {
              $handler->set_id($record->id);
          }
          $handler->set_component($record->component);
  
          // Overload fields which can be modified.
          if (isset($record->defaultexpiration)) {
              $handler->set_defaultexpiration($record->defaultexpiration);
          }
  
          if (isset($record->validateaddress)) {
              $handler->set_validateaddress($record->validateaddress);
          }
  
          if (isset($record->enabled)) {
              $handler->set_enabled($record->enabled);
          }
  
          return $handler;
      }
code_tokens: protected static function handler_from_record ( $ record ) { $ classname = $ record -> classname ; if ( strpos ( $ classname , '\\' ) !== 0 ) { $ classname = '\\' . $ classname ; } if ( ! class_exists ( $ classname ) ) { return false ; } $ handler = new $ classname ; if ( isset ( $ record -> id ) ) { $ handler -> set_id ( $ record -> id ) ; } $ handler -> set_component ( $ record -> component ) ; // Overload fields which can be modified. if ( isset ( $ record -> defaultexpiration ) ) { $ handler -> set_defaultexpiration ( $ record -> defaultexpiration ) ; } if ( isset ( $ record -> validateaddress ) ) { $ handler -> set_validateaddress ( $ record -> validateaddress ) ; } if ( isset ( $ record -> enabled ) ) { $ handler -> set_enabled ( $ record -> enabled ) ; } return $ handler ; }
docstring: Load the Inbound Message handler details for a given record.
  
  @param \stdClass $record The record to retrieve the handler for.
  @return \core\message\inbound\handler or false
docstring_tokens: Load the Inbound Message handler details for a given record .