setProperties(); } /** * Sets the export PHP Array properties * * @return void */ protected function setProperties() { $this->properties = array( 'text' => __('PHP array'), 'extension' => 'php', 'mime_type' => 'text/plain', 'options' => array(), 'options_text' => __('Options') ); $this->properties['options'] = array( array( 'type' => 'begin_group', 'name' => 'general_opts' ), array( 'type' => 'hidden', 'name' => 'structure_or_data', ), array( 'type' => 'end_group' ) ); } /** * This method is called when any PluginManager to which the observer * is attached calls PluginManager::notify() * * @param SplSubject $subject The PluginManager notifying the observer * of an update. * * @return void */ public function update (SplSubject $subject) { } /** * Outputs export header * * @return bool Whether it succeeded */ public function exportHeader () { PMA_exportOutputHandler( ' " . var_export($record[$i], true) . (($i + 1 >= $columns_cnt) ? '' : ','); } $buffer .= ')'; } $buffer .= $crlf . ');' . $crlf; if (! PMA_exportOutputHandler($buffer)) { return false; } PMA_DBI_free_result($result); return true; } } ?>