concrete/src/Conversation/Editor/Editor.php
public static function add($cnvEditorHandle, $cnvEditorName, $pkg = false)
    {
        $pkgID = 0;
        if (is_object($pkg)) {
            $pkgID = $pkg->getPackageID();
        }
        $db = Database::connection();
        $db->insert(
            'ConversationEditors',
            array(
                'cnvEditorHandle' => $cnvEditorHandle,
                'cnvEditorName' => $cnvEditorName,
                'pkgID' => $pkgID,
            )
        );

        return static::getByHandle($cnvEditorHandle);
    }
public static function add($cnvEditorHandle, $cnvEditorName, $pkg = false)
    {
        $pkgID = 0;
        if (is_object($pkg)) {
            $pkgID = $pkg->getPackageID();
        }
        $db = Database::connection();
        $db->insert(
            'ConversationEditors',
            array(
                'cnvEditorHandle' => $cnvEditorHandle,
                'cnvEditorName' => $cnvEditorName,
                'pkgID' => $pkgID,
            )
        );

        return static::getByHandle($cnvEditorHandle);
    }
public static function add ( $ cnvEditorHandle , $ cnvEditorName , $ pkg = false ) { $ pkgID = 0 ; if ( is_object ( $ pkg ) ) { $ pkgID = $ pkg -> getPackageID ( ) ; } $ db = Database :: connection ( ) ; $ db -> insert ( 'ConversationEditors' , array ( 'cnvEditorHandle' => $ cnvEditorHandle , 'cnvEditorName' => $ cnvEditorName , 'pkgID' => $ pkgID , ) ) ; return static :: getByHandle ( $ cnvEditorHandle ) ; }
Creates a database record for the Conversation Editor, then attempts to return the object.

@param string $cnvEditorHandle
@param string $cnvEditorName
@param bool|Package $pkg

@return Editor|null
Creates a database record for the Conversation Editor then attempts to return the object .