コード例 #1
0
 public function testNotMatchChildOnlyById()
 {
     $element = $this->xpath->query('//doc:para')->item(0);
     $directive = new ezcDocumentPcssLayoutDirective(array('#paragraph_with_inline_markup'), array());
     $this->assertEquals(false, (bool) preg_match($regexp = $directive->getRegularExpression(), $id = $element->getLocationId()), "Directive {$regexp} was expected to NOT match elements location id: \"{$id}\".");
 }
コード例 #2
0
ファイル: default.php プロジェクト: axelmdev/ecommerce
<?php

return array(0 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'article'), 'formats' => array('font-size' => '12pt', 'font-family' => 'sans-serif', 'font-weight' => 'normal', 'font-style' => 'normal', 'line-height' => '1.4', 'text-align' => 'left', 'text-decoration' => 'none', 'background-color' => 'transparent', 'border' => '0 solid #000', 'color' => '#2e3436', 'text-columns' => '1', 'text-column-spacing' => '10mm', 'direction' => 'ltr', 'padding' => '0mm', 'margin' => '0mm', 'orphans' => '3', 'widows' => '3'), 'file' => 'style/default.css', 'line' => 1, 'position' => 8)), 1 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'page'), 'formats' => array('page-size' => 'A4', 'page-orientation' => 'portrait', 'padding' => '22mm 16mm', 'margin' => '0mm'), 'file' => 'style/default.css', 'line' => 28, 'position' => 6)), 2 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'para'), 'formats' => array('border' => 'none', 'margin' => '3mm 0mm 1mm 0mm', 'padding' => '0mm'), 'file' => 'style/default.css', 'line' => 38, 'position' => 6)), 3 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'emphasis'), 'formats' => array('font-weight' => 'bold'), 'file' => 'style/default.css', 'line' => 44, 'position' => 10)), 4 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'ulink'), 'formats' => array('text-decoration' => 'underline', 'color' => '#204a87'), 'file' => 'style/default.css', 'line' => 48, 'position' => 7)), 5 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'link'), 'formats' => array('text-decoration' => 'underline', 'color' => '#204a87'), 'file' => 'style/default.css', 'line' => 53, 'position' => 6)), 6 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'title'), 'formats' => array('font-family' => 'serif', 'font-weight' => 'bold', 'color' => '#000000'), 'file' => 'style/default.css', 'line' => 58, 'position' => 7)), 7 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'title'), 'formats' => array('font-size' => '32pt'), 'file' => 'style/default.css', 'line' => 64, 'position' => 7)), 8 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'section', 1 => '> title'), 'formats' => array('font-size' => '24pt', 'text-columns' => '1', 'margin' => '10mm 0mm 4mm 0mm'), 'file' => 'style/default.css', 'line' => 68, 'position' => 17)), 9 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'section', 1 => '> section', 2 => '> title'), 'formats' => array('font-size' => '20pt', 'text-columns' => '1'), 'file' => 'style/default.css', 'line' => 74, 'position' => 27)), 10 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'section', 1 => '> section', 2 => '> section', 3 => '> title'), 'formats' => array('font-size' => '18pt'), 'file' => 'style/default.css', 'line' => 79, 'position' => 37)), 11 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'section', 1 => '> section', 2 => '> section', 3 => '> section', 4 => '> title'), 'formats' => array('font-size' => '16pt'), 'file' => 'style/default.css', 'line' => 83, 'position' => 47)), 12 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'section', 1 => '> section', 2 => '> section', 3 => '> section', 4 => '> section', 5 => '> title'), 'formats' => array('font-size' => '14pt'), 'file' => 'style/default.css', 'line' => 87, 'position' => 57)), 13 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'section', 1 => '> section', 2 => '> section', 3 => '> section', 4 => '> section', 5 => '> section', 6 => '> title'), 'formats' => array('font-size' => '12pt'), 'file' => 'style/default.css', 'line' => 91, 'position' => 67)), 14 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'literallayout'), 'formats' => array('border' => '1mm solid #d3d7d5', 'background-color' => '#f5f5f6', 'padding' => '1', 'font-size' => '10pt', 'font-family' => 'monospace'), 'file' => 'style/default.css', 'line' => 95, 'position' => 15)), 15 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'varlistentry', 1 => '> term'), 'formats' => array('font-weight' => 'bold'), 'file' => 'style/default.css', 'line' => 103, 'position' => 21)), 16 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'varlistentry', 1 => '> listitem'), 'formats' => array('padding-left' => '5mm', 'margin-bottom' => '3mm'), 'file' => 'style/default.css', 'line' => 107, 'position' => 25)), 17 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'orderedlist', 1 => '> listitem'), 'formats' => array('padding-left' => '10mm', 'margin-bottom' => '3mm'), 'file' => 'style/default.css', 'line' => 112, 'position' => 24)), 18 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'itemizedlist', 1 => '> listitem'), 'formats' => array('padding-left' => '10mm', 'margin-bottom' => '3mm'), 'file' => 'style/default.css', 'line' => 117, 'position' => 25)), 19 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'listitem', 1 => '> para'), 'formats' => array('margin' => '0mm 0mm 4mm 0mm'), 'file' => 'style/default.css', 'line' => 122, 'position' => 17)), 20 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'blockquote'), 'formats' => array('margin' => '2mm 0mm 4mm 10mm'), 'file' => 'style/default.css', 'line' => 126, 'position' => 12)), 21 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'blockquote', 1 => '> attribution'), 'formats' => array('margin' => '1mm 0mm 1mm 5mm', 'font-style' => 'italic'), 'file' => 'style/default.css', 'line' => 130, 'position' => 26)), 22 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'table'), 'formats' => array('margin' => '2mm 0mm', 'border' => '1px solid #babdb6', 'padding' => '0px 1px 1px 0px'), 'file' => 'style/default.css', 'line' => 135, 'position' => 7)), 23 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'table', 1 => 'entry'), 'formats' => array('margin' => '1px 0px 0px 1px', 'border' => '1px solid #d3d7d5', 'padding' => '1mm'), 'file' => 'style/default.css', 'line' => 141, 'position' => 13)), 24 => ezcDocumentPcssLayoutDirective::__set_state(array('regularExpression' => NULL, 'address' => array(0 => 'table', 1 => 'thead', 2 => 'entry'), 'formats' => array('font-weight' => 'bold'), 'file' => 'style/default.css', 'line' => 147, 'position' => 19)));