SproutCMS

This is the code documentation for the SproutCMS project

class DocImport

Abstract class with additional stuff for the document importer system

The document importer loads docuemnts and returns XML files
These files can then be processed by other parts of the CMS.
The term "xmldoc" is referring to the intermediate XML file produced by the
import libraries

Source code (9 results)

/sprout/Controllers/Admin/PageAdminController.php   Highlighted file source

Line 36: use Sprout\Helpers\DocImport\DocImport;
Line 454: foreach (Register::getDocImports() as $ext => $details) {
Line 495: $inst = DocImport::instance($_FILES['import']['name']);
Line 588: $tree = DocImport::getHeadingsTree($filename, $_GET['heading_level']);
Line 683: $resources = DocImport::getResources($filename);
Line 745: $tree = DocImport::getHeadingsTree($filename, $_POST['heading_level'], true);
Line 788: $html = DocImport::getHtml($dom, $images, $headings);
Line 2461: if (count(Register::getDocImports()) > 0) {

/sprout/Controllers/AdminAjaxController.php   Highlighted file source

Line 24: use Sprout\Helpers\DocImport\DocImport;
Line 433: $inst = DocImport::instance($_FILES['import']['name']);
Line 449: $html = DocImport::getHtml($dom, $images, $headings);

/sprout/Controllers/AdminController.php   Highlighted file source

Line 103: Register::docImport('csv', 'Sprout\\Helpers\\DocImport\\DocImportCSV', 'CSV');
Line 104: Register::docImport('txt', 'Sprout\\Helpers\\DocImport\\DocImportPlaintext', 'Plain text');
Line 105: Register::docImport('docx', 'Sprout\\Helpers\\DocImport\\DocImportDOCX', 'Microsoft Word 2007 and later');

/sprout/Helpers/DocImport/DocImport.php   Highlighted file source

Line 14: namespace Sprout\Helpers\DocImport;
Line 34: abstract class DocImport {
Line 47: * Return a `DocImport` object instance for converting a file with a given original name
Line 57: $doc_imports = Register::getDocImports();

/sprout/Helpers/DocImport/DocImportCSV.php   Highlighted file source

Line 14: namespace Sprout\Helpers\DocImport;
Line 20: class DocImportCSV extends DocImport {

/sprout/Helpers/DocImport/DocImportDOCX.php   Highlighted file source

Line 14: namespace Sprout\Helpers\DocImport;
Line 24: class DocImportDOCX extends DocImport
Line 285: $runs[] = new DocImportDOCXRun($child);
Line 290: $run = new DocImportDOCXRun($child);
Line 301: $runs[] = new DocImportDOCXRun($run);
Line 1102: class DocImportDOCXRun

/sprout/Helpers/DocImport/DocImportPlaintext.php   Highlighted file source

Line 14: namespace Sprout\Helpers\DocImport;
Line 20: class DocImportPlaintext extends DocImport {

/sprout/Helpers/Register.php   Highlighted file source

Line 33: private static $docimports = array();
Line 152: * Register a DocImport class
Line 154: public static function docImport($ext, $class, $label)
Line 156: self::$docimports[$ext] = array($class, $label);
Line 160: * Get all `DocImport`s
Line 162: public static function getDocImports()
Line 164: return self::$docimports;

/sprout/tests/DocImport/docImportTest.php   Highlighted file source

Line 14: use Sprout\Helpers\DocImport\DocImport;
Line 21: class docImportTest extends PHPUnit_Framework_TestCase
Line 48: $got = DocImport::getHtml($dom);
Line 93: $got = DocImport::getHtml($dom, $imgs);
Line 123: $got = DocImport::getHtml($dom, array(), $headings);
Line 137: $tree = DocImport::getHeadingsTree($dom, 1);
Line 144: $tree = DocImport::getHeadingsTree($dom, 1);
Line 150: $tree = DocImport::getHeadingsTree($dom, 1);
Line 156: $tree = DocImport::getHeadingsTree($dom, 1);
Line 218: $node0 = DocImport::getHeadingsTree($dom, 3);
Line 253: $tree = DocImport::getHeadingsTree($dom, 1, true);
Line 261: $tree = DocImport::getHeadingsTree($dom, 1, true);
Line 269: $tree = DocImport::getHeadingsTree($dom, 1, true);

A total of 48 lines in 9 files were found