Get the editor.

@param $suite

@return array
357490
protected function getEditor($suite)
    {
        if (empty($suite) || is_null($editor = config("tddd.editors.{$suite->editor}"))) {
            return $this->getDefaultEditor();
        }

        return $editor;
    }
1014296
def editors(self):
        """"""
        result = set()
        for role in self._EDITOR_ROLES:
            for member in self._bindings.get(role, ()):
                result.add(member)
        return frozenset(result)
644559
public function getControlInfo($code)
    {
        $controls = $this->listControls(false);

        if (array_key_exists($code, $controls)) {
            return $controls[$code];
        }

        return [
            'properties' => [],
            'designTimeProvider' => self::DEFAULT_DESIGN_TIME_PROVIDER,
            'name' => $code,
            'description' => null,
            'unknownControl' => true
        ];
    }
171752
public function addSuite($suite)
    {
        if (true === $this->pending) {
            $suite->setPending();
        }
        $this->suites[] = $suite;
    }
989158
public static function get_editor_options($context) {
        global $CFG;

        $editoroptions = [
                'subdirs'  => 0,
                'context'  => $context,
                'maxfiles' => EDITOR_UNLIMITED_FILES,
                'maxbytes' => $CFG->maxbytes,
                'noclean' => 0,
                'trusttext' => 0,
                'autosave' => false
        ];

        return $editoroptions;
    }
407284
protected function getCode($code)
    {
        if (is_array($code)) {
            return $this->getCodeArray($code);
        }

        return $this->get($code);
    }
391423
function orig() {
    	$lines = array();

    	foreach ($this->edits as $edit) {
    		if ($edit->orig)
    			array_splice($lines, sizeof($lines), 0, $edit->orig);
    	}
    	return $lines;
    }
618114
public function getValid($edit = null)
    {
        $rules = [];
        foreach ($this->rows as $rows_value) {
            if (! empty($rows_value->valid)) {
                $rules[$rows_value->name] = $rows_value->valid;
                if ($edit && $rows_value->name === 'url') {
                    $rules[$rows_value->name] = str_replace(
                        'unique:'.$this->table,
                        'unique:'.$this->table.','.$rows_value->name.','.$edit,
                        $rules[$rows_value->name]
                    );
                }
            }
        }

        return $rules;
    }
1143017
static public function editor($value)
    {
        
        $value = str_replace([chr(13).chr(10), chr(13), chr(10)], '<br>', $value);
        
        return $value;
    }
261891
protected function getEditorConfig()
    {
        $editorConfig = $this->config()->get('editor_config');
        if ($editorConfig) {
            return HTMLEditorConfig::get($editorConfig);
        }
        return HTMLEditorConfig::get_active();
    }
1249701
public function isEditor($member)
    {
        $isEditor = $this->isMemberOf($member, $this->Editors());
        $this->extend('updateIsEditor', $isEditor, $member);

        return $isEditor;
    }
892560
protected static function editorLink($source)
    {
        if (is_string($source) === true) {
            $file = $source;
            $line = null;
        } else {
            $file = $source[0];
            $line = $source[1];
        }

        return Helpers::editorLink($file, $line);
    }
543484
protected function findEdition()
    {
        try {
            $edition = $this->findEditionByConfigFile();
            if (empty($edition)) {
                $edition = $this->findEditionByEditionFiles();
            }
        } catch (\Exception $exception) {
            try {
                $edition = $this->findEditionByEditionFiles();
            } catch (\Exception $exception) {
                throw $exception;
            }
        }

        return strtoupper($edition);
    }
629918
protected function getEditorCSS()
    {
        $editor = [];
        $resourceLoader = ModuleResourceLoader::singleton();
        foreach ($this->getContentCSS() as $contentCSS) {
            $editor[] = $resourceLoader->resolveURL($contentCSS);
        }
        return $editor;
    }
532541
public static function get_editable_types($context = null) {

        if (empty($context)) {
            $context = context_system::instance();
        }

        $types= repository::get_types(true);
        $editabletypes = array();
        foreach ($types as $type) {
            $instanceoptionnames = repository::static_function($type->get_typename(), 'get_instance_option_names');
            if (!empty($instanceoptionnames)) {
                if ($type->get_contextvisibility($context)) {
                    $editabletypes[]=$type;
                }
             }
        }
        return $editabletypes;
    }
793347
public function edit() {
		HtmlEditorField::include_js();
//		Requirements::javascript('simplewiki/javascript/sslinks/editor_plugin_src.js');

		$existing = $this->getEditingLocks($this->data(), true);
		// oops, we've somehow got here even though we shouldn't have
		if ($existing && $existing['user'] != Member::currentUser()->Email) {
			return $this->redirect($this->data()->Link());
		}

		if (!$this->data()->canEdit()) {
			return Security::permissionFailure($this);
		}

		$this->form = $this->EditForm();

		// check who's editing and whether or not we should bail out
		return $this->renderWith(array('WikiPage', 'Page'));
	}
1240639
public function edit()
    {
        $builder = (new ManagementBuilder(TransactionType::EDIT))
            ->withPaymentMethod($this->transactionReference);

        if ($this->commercialIndicator !== null) {
            $builder = $builder->withModifier(TransactionModifier::LEVEL_II);
        }

        return $builder;
    }