import_from_reader example


        public function import_from_file( $filename ) {
            $reader = new POMO_FileReader( $filename );

            if ( ! $reader->is_resource() ) {
                return false;
            }

            $this->filename = (string) $filename;

            return $this->import_from_reader( $reader );
        }

        /** * @param string $filename * @return bool */
        public function export_to_file( $filename ) {
            $fh = fopen( $filename, 'wb' );
            if ( ! $fh ) {
                return false;
            }
            
Home | Imprint | This part of the site doesn't use cookies.