PHP Classes

File: docs/phpdoc-cache-55/phpdoc-cache-file_4686189729dfbd455ddf7351e7fc551e.dat

Recommend this page to a friend!
  Classes of Tio   PHP SVG Creator   docs/phpdoc-cache-55/phpdoc-cache-file_4686189729dfbd455ddf7351e7fc551e.dat   Download  
File: docs/phpdoc-cache-55/phpdoc-cache-file_4686189729dfbd455ddf7351e7fc551e.dat
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP SVG Creator
Generate SVG chart documents
Author: By
Last change:
Date: 6 days ago
Size: 8,521 bytes
 

Contents

Class file image Download
O:39:"phpDocumentor\Descriptor\FileDescriptor":21:{s:7:"*hash";s:32:"757178dfc31c68a2d7317d0bbc955d13";s:7:"*path";s:17:"examples\line.php";s:9:"*source";s:1395:"<?php

   
include_once('../src/SVGCreator/Element.php');
    include_once(
'../src/SVGCreator/SVGException.php');
    include_once(
'../src/SVGCreator/Elements/Rect.php');
    include_once(
'../src/SVGCreator/Elements/Group.php');
    include_once(
'../src/SVGCreator/Elements/Svg.php');
    include_once(
'../src/SVGCreator/Elements/Circle.php');
    include_once(
'../src/SVGCreator/Elements/Marker.php');
    include_once(
'../src/SVGCreator/Elements/Defs.php');
    include_once(
'../src/SVGCreator/Elements/Line.php');
    include_once(
'../src/SVGCreator/Elements/Path.php');
?>
<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Line Example</title>
    </head>

    <body>
        <section>
            <?php
                $attributesSvg
= array(
                           
'width' => 1000,
                           
'height' => 1000
                         
);

               
$svg = new \SVGCreator\Elements\Svg($attributesSvg);

               
$svg->append(\SVGCreator\Element::LINE)
                    ->
attr('x1', 100)
                    ->
attr('y1', 100)
                    ->
attr('x2', 325)
                    ->
attr('y2', 250)
                    ->
attr('stroke', 'blue');

               
$circle = new \SVGCreator\Elements\Circle();

               
$circle->attr('cx', 250)
                    ->
attr('cy', 140)
                    ->
attr('fill', 'green')
                    ->
attr('r', 20)
                    ->
attr('stroke', 'cyan')
                    ->
attr('stroke-width', '5px');

               
$svg->append($circle);

                echo
$svg->getString();
           
?>
</section>
    </body>
</html>";s:20:"*namespace_aliases";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}s:11:"*includes";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:10:{i:0;O:41:"phpDocumentor\Reflection\IncludeReflector":3:{s:7:"*node";O:27:"PHPParser_Node_Expr_Include":2:{s:11:"*subNodes";a:2:{s:4:"expr";O:28:"PHPParser_Node_Scalar_String":2:{s:11:"*subNodes";a:1:{s:5:"value";s:29:"../src/SVGCreator/Element.php";}s:13:"*attributes";a:3:{s:9:"startLine";i:3;s:7:"endLine";i:3;s:13:"originalValue";s:31:"'../src/SVGCreator/Element.php'";}}s:4:"type";i:2;}s:13:"*attributes";a:3:{s:9:"startLine";i:3;s:7:"endLine";i:3;s:8:"comments";a:0:{}}}s:23:"*default_package_name";s:0:"";s:10:"*context";O:41:"phpDocumentor\Reflection\DocBlock\Context":3:{s:12:"*namespace";s:0:"";s:20:"*namespace_aliases";a:0:{}s:7:"*lsen";s:0:"";}}i:1;O:41:"phpDocumentor\Reflection\IncludeReflector":3:{s:7:"*node";O:27:"PHPParser_Node_Expr_Include":2:{s:11:"*subNodes";a:2:{s:4:"expr";O:28:"PHPParser_Node_Scalar_String":2:{s:11:"*subNodes";a:1:{s:5:"value";s:34:"../src/SVGCreator/SVGException.php";}s:13:"*attributes";a:3:{s:9:"startLine";i:4;s:7:"endLine";i:4;s:13:"originalValue";s:36:"'../src/SVGCreator/SVGException.php'";}}s:4:"type";i:2;}s:13:"*attributes";a:2:{s:9:"startLine";i:4;s:7:"endLine";i:4;}}s:23:"*default_package_name";s:0:"";s:10:"*context";r:25;}i:2;O:41:"phpDocumentor\Reflection\IncludeReflector":3:{s:7:"*node";O:27:"PHPParser_Node_Expr_Include":2:{s:11:"*subNodes";a:2:{s:4:"expr";O:28:"PHPParser_Node_Scalar_String":2:{s:11:"*subNodes";a:1:{s:5:"value";s:35:"../src/SVGCreator/Elements/Rect.php";}s:13:"*attributes";a:3:{s:9:"startLine";i:5;s:7:"endLine";i:5;s:13:"originalValue";s:37:"'../src/SVGCreator/Elements/Rect.php'";}}s:4:"type";i:2;}s:13:"*attributes";a:2:{s:9:"startLine";i:5;s:7:"endLine";i:5;}}s:23:"*default_package_name";s:0:"";s:10:"*context";r:25;}i:3;O:41:"phpDocumentor\Reflection\IncludeReflector":3:{s:7:"*node";O:27:"PHPParser_Node_Expr_Include":2:{s:11:"*subNodes";a:2:{s:4:"expr";O:28:"PHPParser_Node_Scalar_String":2:{s:11:"*subNodes";a:1:{s:5:"value";s:36:"../src/SVGCreator/Elements/Group.php";}s:13:"*attributes";a:3:{s:9:"startLine";i:6;s:7:"endLine";i:6;s:13:"originalValue";s:38:"'../src/SVGCreator/Elements/Group.php'";}}s:4:"type";i:2;}s:13:"*attributes";a:2:{s:9:"startLine";i:6;s:7:"endLine";i:6;}}s:23:"*default_package_name";s:0:"";s:10:"*context";r:25;}i:4;O:41:"phpDocumentor\Reflection\IncludeReflector":3:{s:7:"*node";O:27:"PHPParser_Node_Expr_Include":2:{s:11:"*subNodes";a:2:{s:4:"expr";O:28:"PHPParser_Node_Scalar_String":2:{s:11:"*subNodes";a:1:{s:5:"value";s:34:"../src/SVGCreator/Elements/Svg.php";}s:13:"*attributes";a:3:{s:9:"startLine";i:7;s:7:"endLine";i:7;s:13:"originalValue";s:36:"'../src/SVGCreator/Elements/Svg.php'";}}s:4:"type";i:2;}s:13:"*attributes";a:2:{s:9:"startLine";i:7;s:7:"endLine";i:7;}}s:23:"*default_package_name";s:0:"";s:10:"*context";r:25;}i:5;O:41:"phpDocumentor\Reflection\IncludeReflector":3:{s:7:"*node";O:27:"PHPParser_Node_Expr_Include":2:{s:11:"*subNodes";a:2:{s:4:"expr";O:28:"PHPParser_Node_Scalar_String":2:{s:11:"*subNodes";a:1:{s:5:"value";s:37:"../src/SVGCreator/Elements/Circle.php";}s:13:"*attributes";a:3:{s:9:"startLine";i:8;s:7:"endLine";i:8;s:13:"originalValue";s:39:"'../src/SVGCreator/Elements/Circle.php'";}}s:4:"type";i:2;}s:13:"*attributes";a:2:{s:9:"startLine";i:8;s:7:"endLine";i:8;}}s:23:"*default_package_name";s:0:"";s:10:"*context";r:25;}i:6;O:41:"phpDocumentor\Reflection\IncludeReflector":3:{s:7:"*node";O:27:"PHPParser_Node_Expr_Include":2:{s:11:"*subNodes";a:2:{s:4:"expr";O:28:"PHPParser_Node_Scalar_String":2:{s:11:"*subNodes";a:1:{s:5:"value";s:37:"../src/SVGCreator/Elements/Marker.php";}s:13:"*attributes";a:3:{s:9:"startLine";i:9;s:7:"endLine";i:9;s:13:"originalValue";s:39:"'../src/SVGCreator/Elements/Marker.php'";}}s:4:"type";i:2;}s:13:"*attributes";a:2:{s:9:"startLine";i:9;s:7:"endLine";i:9;}}s:23:"*default_package_name";s:0:"";s:10:"*context";r:25;}i:7;O:41:"phpDocumentor\Reflection\IncludeReflector":3:{s:7:"*node";O:27:"PHPParser_Node_Expr_Include":2:{s:11:"*subNodes";a:2:{s:4:"expr";O:28:"PHPParser_Node_Scalar_String":2:{s:11:"*subNodes";a:1:{s:5:"value";s:35:"../src/SVGCreator/Elements/Defs.php";}s:13:"*attributes";a:3:{s:9:"startLine";i:10;s:7:"endLine";i:10;s:13:"originalValue";s:37:"'../src/SVGCreator/Elements/Defs.php'";}}s:4:"type";i:2;}s:13:"*attributes";a:2:{s:9:"startLine";i:10;s:7:"endLine";i:10;}}s:23:"*default_package_name";s:0:"";s:10:"*context";r:25;}i:8;O:41:"phpDocumentor\Reflection\IncludeReflector":3:{s:7:"*node";O:27:"PHPParser_Node_Expr_Include":2:{s:11:"*subNodes";a:2:{s:4:"expr";O:28:"PHPParser_Node_Scalar_String":2:{s:11:"*subNodes";a:1:{s:5:"value";s:35:"../src/SVGCreator/Elements/Line.php";}s:13:"*attributes";a:3:{s:9:"startLine";i:11;s:7:"endLine";i:11;s:13:"originalValue";s:37:"'../src/SVGCreator/Elements/Line.php'";}}s:4:"type";i:2;}s:13:"*attributes";a:2:{s:9:"startLine";i:11;s:7:"endLine";i:11;}}s:23:"*default_package_name";s:0:"";s:10:"*context";r:25;}i:9;O:41:"phpDocumentor\Reflection\IncludeReflector":3:{s:7:"*node";O:27:"PHPParser_Node_Expr_Include":2:{s:11:"*subNodes";a:2:{s:4:"expr";O:28:"PHPParser_Node_Scalar_String":2:{s:11:"*subNodes";a:1:{s:5:"value";s:35:"../src/SVGCreator/Elements/Path.php";}s:13:"*attributes";a:3:{s:9:"startLine";i:12;s:7:"endLine";i:12;s:13:"originalValue";s:37:"'../src/SVGCreator/Elements/Path.php'";}}s:4:"type";i:2;}s:13:"*attributes";a:2:{s:9:"startLine";i:12;s:7:"endLine";i:12;}}s:23:"*default_package_name";s:0:"";s:10:"*context";r:25;}}}s:12:"*constants";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}s:12:"*functions";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}s:10:"*classes";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}s:13:"*interfaces";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}s:9:"*traits";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}s:10:"*markers";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}s:8:"*fqsen";s:0:"";s:7:"*name";s:8:"line.php";s:12:"*namespace";N;s:10:"*package";s:7:"Default";s:10:"*summary";s:0:"";s:14:"*description";s:0:"";s:17:"*fileDescriptor";N;s:7:"*line";i:0;s:7:"*tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:2:{s:7:"package";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}s:10:"subpackage";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:0:{}}}}s:9:"*errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:"*items";a:1:{i:0;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:"*severity";s:5:"error";s:7:"*code";s:13:"PPC:ERR-50000";s:7:"*line";i:0;s:10:"*context";a:1:{i:0;s:0:"";}}}}}