Просмотр исходного кода

commit docs xsd do dziedziczen i standarzyacji

a.binder 7 лет назад
Родитель
Сommit
7275eb3a37
5 измененных файлов с 166 добавлено и 0 удалено
  1. 23 0
      doc/SE/se-lib/Route/Debug.php.xsd
  2. 72 0
      doc/SE/se-lib/UI.php.xsd
  3. 8 0
      doc/SE/se-lib/bootstrap.php.xsd
  4. 56 0
      doc/alerts.xsd
  5. 7 0
      doc/session.xsd

+ 23 - 0
doc/SE/se-lib/Route/Debug.php.xsd

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+    targetNamespace="https://procesy5.pl/SE/se-lib/Route/Debug.php.xsd" vc:minVersion="1.1"
+    xmlns:p5Al="https://procesy5.pl/alerts"
+    xmlns:p5RDbg="https://procesy5.pl/SE/se-lib/Route/Debug.php.xsd"
+    xmlns:p5Ui="https://procesy5.pl/SE/se-lib/UI.php.xsd"
+    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
+    <xs:import namespace="https://procesy5.pl/alerts" schemaLocation="../../../alerts.xsd"/>
+    <xs:import namespace="https://procesy5.pl/SE/se-lib/UI.php.xsd" schemaLocation="../UI.php.xsd"/>
+    <xs:group name="asd">
+        <xs:sequence/>
+    </xs:group>
+    <xs:complexType name="asd">
+        <xs:sequence>
+            <xs:element name="asd"/>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:element name="alert">
+        <xs:complexType>
+            <xs:group ref="p5Ui:alert"/>
+        </xs:complexType>
+    </xs:element>
+</xs:schema>

+ 72 - 0
doc/SE/se-lib/UI.php.xsd

@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+    targetNamespace="https://procesy5.pl/SE/se-lib/UI.php.xsd" vc:minVersion="1.1"
+    xmlns:p5BS="https://procesy5.pl/bootstrap" xmlns:p5Ui="https://procesy5.pl/SE/se-lib/UI.php.xsd"
+    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" xmlns:p5Al="https://procesy5.pl/alerts">
+    <xs:annotation>
+        <xs:documentation>TODO przykladowe mapowanie funkcji php/xsd/xml </xs:documentation>
+    </xs:annotation>
+    <xs:import namespace="https://procesy5.pl/alerts" schemaLocation="../../alerts.xsd"/>
+    <xs:import namespace="https://procesy5.pl/bootstrap" schemaLocation="bootstrap.php.xsd"/>
+    <xs:complexType name="h.input" abstract="true">
+        <xs:annotation>
+            <xs:documentation>/todo model input/</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+            <xs:element name="tagName"/>
+            <xs:element name="params">
+                <xs:annotation>
+                    <xs:documentation>[]</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element name="childrens">
+                <xs:annotation>
+                    <xs:documentation>[]</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:complexType name="h">
+        <xs:annotation>
+            <xs:documentation>public static function h($tagName, $params = [], $childrens = []) {</xs:documentation>
+        </xs:annotation>
+        <xs:all>
+            <xs:any/>
+        </xs:all>
+    </xs:complexType>
+    <xs:complexType name="hAttributes"/>
+    <xs:group name="hAttributes">
+        <xs:sequence> </xs:sequence>
+    </xs:group>
+    <xs:complexType name="hChildrens"/>
+    <xs:group name="hChildrens">
+        <xs:sequence> </xs:sequence>
+    </xs:group>
+    <xs:simpleType name="outputHtml">
+        <xs:restriction base="xs:boolean"/>
+    </xs:simpleType>
+    <xs:simpleType name="msg">
+        <xs:restriction base="p5Al:msg"/>
+    </xs:simpleType>
+    <xs:group name="alert">
+        <xs:sequence>
+            <xs:element name="alertType" type="p5Al:alertType"/>
+            <xs:element name="msg" type="p5Ui:msg"/>
+            <xs:element default="true" name="outputHtml" type="p5Ui:outputHtml"/>
+        </xs:sequence>
+    </xs:group>
+    <xs:complexType name="alert"/>
+    <xs:complexType name="viewLatestAuthLogAction">
+        <xs:annotation>
+            <xs:documentation>public function viewLatestAuthLogAction() {</xs:documentation>
+        </xs:annotation>
+        <xs:choice>
+            <xs:any notQName="name">
+                <xs:annotation>
+                    <xs:documentation>if (!$logName) {
+TODO przemapowanie</xs:documentation>
+                </xs:annotation>
+            </xs:any>
+        </xs:choice>
+    </xs:complexType>
+</xs:schema>

+ 8 - 0
doc/SE/se-lib/bootstrap.php.xsd

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+    targetNamespace="https://procesy5.pl/bootstrap" vc:minVersion="1.1"
+    xmlns:p5BS="https://procesy5.pl/bootstrap" xmlns:p5Ui="https://procesy5.pl/SE/se-lib/UI.php.xsd"
+    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" xmlns:ns1="https://procesy5.pl/alerts">
+    <xs:import namespace="https://procesy5.pl/SE/se-lib/UI.php.xsd" schemaLocation="UI.php.xsd"/>
+    <xs:import namespace="https://procesy5.pl/alerts" schemaLocation="../../alerts.xsd"/>
+</xs:schema>

+ 56 - 0
doc/alerts.xsd

@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+    targetNamespace="https://procesy5.pl/alerts" vc:minVersion="1.1"
+    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" xmlns:p5Al="https://procesy5.pl/alerts">
+    <xs:annotation>
+        <xs:documentation>klasa do dziedziczen alertow i konstruowania szczegółowych modeli</xs:documentation>
+    </xs:annotation>
+    <xs:attributeGroup name="errors">
+        <xs:attribute ref="p5Al:error"/>
+        <xs:attribute ref="p5Al:alert"/>
+        <xs:attribute ref="p5Al:warning"/>
+    </xs:attributeGroup>
+    <xs:complexType name="ThrowException">
+        <xs:sequence>
+            <xs:element name="Exception"/>
+        </xs:sequence>
+        <xs:attributeGroup ref="p5Al:errors"/>
+    </xs:complexType>
+    <xs:group name="ThrowException">
+        <xs:sequence/>
+    </xs:group>
+    <xs:simpleType name="alertType.danger">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="danger"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:simpleType name="alertType.warning">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="warning"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:simpleType name="alertType">
+        <xs:union memberTypes="p5Al:alertType.warning p5Al:alertType.danger"/>
+    </xs:simpleType>
+    <xs:simpleType name="msg">
+        <xs:restriction base="xs:string"/>
+    </xs:simpleType>
+    <xs:complexType name="alert">
+        <xs:annotation>
+            <xs:documentation>abstrakt</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+            <xs:element name="alertType" type="p5Al:alertType"/>
+            <xs:element name="msg" type="p5Al:msg">
+                <xs:complexType/>
+            </xs:element>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:element name="alert"/>
+    <xs:element name="danger"/>
+    <xs:element name="warning"/>
+    <xs:element name="debug"/>
+    <xs:attribute name="error"/>
+    <xs:attribute name="alert"/>
+    <xs:attribute name="warning"/>
+</xs:schema>

+ 7 - 0
doc/session.xsd

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+    targetNamespace="https://procesy5.pl/session.xsd" xmlns="https://procesy5.pl/session.xsd">
+    <xs:annotation>
+        <xs:documentation>modele dla sesji</xs:documentation>
+    </xs:annotation>
+</xs:schema>