concrete/src/Conversation/Editor/Editor.php
protected static function createFromRecord($record)
    {
        if (is_array($record) && $record['cnvEditorHandle']) {
            /** @var \Concrete\Core\Utility\Service\Text $textHelper */
            $textHelper = Core::make('helper/text');
            $class = '\\Concrete\\Core\\Conversation\\Editor\\' . $textHelper->camelcase(
                    $record['cnvEditorHandle']
                ) . 'Editor';
            /** @var Editor $sc Really this could be any kind of editor but this should help code completion a bit */
            $sc = Core::make($class);
            $sc->setPropertiesFromArray($record);

            return $sc;
        }

        return null;
    }
protected static function createFromRecord($record)
    {
        if (is_array($record) && $record['cnvEditorHandle']) {
            /** @var \Concrete\Core\Utility\Service\Text $textHelper */
            $textHelper = Core::make('helper/text');
            $class = '\\Concrete\\Core\\Conversation\\Editor\\' . $textHelper->camelcase(
                    $record['cnvEditorHandle']
                ) . 'Editor';
            /** @var Editor $sc Really this could be any kind of editor but this should help code completion a bit */
            $sc = Core::make($class);
            $sc->setPropertiesFromArray($record);

            return $sc;
        }

        return null;
    }
protected static function createFromRecord ( $ record ) { if ( is_array ( $ record ) && $ record [ 'cnvEditorHandle' ] ) { /** @var \Concrete\Core\Utility\Service\Text $textHelper */ $ textHelper = Core :: make ( 'helper/text' ) ; $ class = '\\Concrete\\Core\\Conversation\\Editor\\' . $ textHelper -> camelcase ( $ record [ 'cnvEditorHandle' ] ) . 'Editor' ; /** @var Editor $sc Really this could be any kind of editor but this should help code completion a bit */ $ sc = Core :: make ( $ class ) ; $ sc -> setPropertiesFromArray ( $ record ) ; return $ sc ; } return null ; }
This function is used to instantiate a Conversation Editor object from an associative array.

@param array $record an associative array of field value pairs for the ConversationEditor record

@return Editor|null
This function is used to instantiate a Conversation Editor object from an associative array .