private function _outputDataByType($vData, $sFormatType) { switch (strtolower($sFormatType)) { case 'text': if (in_array(gettype($vData), array('array', 'object'))) { echo AdminPageFramework_Debug::get($vData, null, false); } echo $vData; return; case 'json': echo json_encode((array) $vData); return; case 'array': default: echo serialize((array) $vData); return; } }
/** * Print out the contents in the front-end. * * Alternatively you may use the content_{instantiated class name} method. */ public function content($sContent, $aArguments, $aFormData) { return $sContent . '<p>' . __('Hello world! This is a widget created by Admin Page Framework.', 'admin-page-framework-loader') . '</p>' . AdminPageFramework_Debug::get($aArguments) . AdminPageFramework_Debug::get($aFormData); }
/** * Print out the contents in the front-end. * * Alternatively you may use the content_{instantiated class name} method. */ public function content($sContent, $aArguments, $aFormData) { return $sContent . '<p>' . __('Hello world! This is a widget created by Admin Page Framework with some custom field types.', 'admin-page-framework-demo') . '</p>' . AdminPageFramework_Debug::get($aArguments) . AdminPageFramework_Debug::get($aFormData); }
public static function getArray($asArray, $sFilePath = null, $bEscape = true) { self::showDeprecationNotice('AdminPageFramework_Debug::' . __FUNCTION__, 'AdminPageFramework_Debug::get()'); return AdminPageFramework_Debug::get($asArray, $sFilePath, $bEscape); }