rhymix/classes/editor/EditorHandler.class.php
Kijin Sung dfa1e93c79 Remove unnecessary header and footer from class files
- 아래에 이미 author 언급이 있으므로 중복되는 저작권 표기는 제거
- 클래스 하단에 불필요한 end of file 표시 제거 (파일 하나에 클래스 하나씩이므로
  파일이 중간에 끊겼다면 클래스가 닫히지 않아 쉽게 알 수 있음)
2023-01-30 23:52:23 +09:00

32 lines
538 B
PHP

<?php
/**
* Superclass of the editor component.
*
* @class EditorHandler
* @author NAVER (developers@xpressengine.com)
*/
class EditorHandler extends BaseObject
{
/**
* set the xml and other information of the component
* @param object $info editor information
* @return void
* */
function setInfo($info)
{
Context::set('component_info', $info);
if(!isset($info->extra_vars) || !$info->extra_vars)
{
return;
}
foreach($info->extra_vars as $key => $val)
{
$this->{$key} = trim($val->value);
}
}
}