JohnnyCashh

XML MVC

Apr 9th, 2020
816
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.49 KB | None | 0 0
  1. <!-- Ioan Sava IIA2 -->
  2. <!-- Intrebarea 50 Tehnologii Web -->
  3. <?xml version="1.0" encoding="UTF-8"?>
  4. <MVC>
  5.     <components>
  6.         <controllers>
  7.             <class name="Controller" abstract="true">
  8.             </class>
  9.             <class name="ConcreteController1" abstract="false" derived_from="Controller">
  10.                 <method name="method1">
  11.                     Method1
  12.                 </method>
  13.                 <method name="method2">
  14.                     Method2
  15.                 </method>
  16.             </class>
  17.  
  18.             <class name="ConcreteController2" abstract="false" derived_from="Controller">
  19.                 <method name="method3">
  20.                     Method3
  21.                 </method>
  22.  
  23.                 <method name="method4">
  24.                     Method4
  25.                 </method>
  26.             </class>
  27.         </controllers>
  28.  
  29.         <models>
  30.             <class name="Database" abstract="false">
  31.                 <method name="getConnection">
  32.                     getConnection
  33.                 </method>
  34.                 <!-- Singleton -->
  35.                 <method name="getInstance">
  36.                     getInstance
  37.                 </method>
  38.             </class>
  39.  
  40.             <class name="Model1">
  41.                 <state name="state1">
  42.                     state1
  43.                 </state>
  44.                 <state name="state2">
  45.                     state2
  46.                 </state>
  47.                 <method name="getAllModels1">
  48.                     getAllModels1
  49.                 </method>
  50.             </class>
  51.  
  52.             <class name="Model2">
  53.                 <state name="state3">
  54.                     state1
  55.                 </state>
  56.                 <method name="findModel2ByState3">
  57.                     findModel2ByState3
  58.                 </method>
  59.             </class>
  60.         </models>
  61.  
  62.         <views>
  63.             <home>
  64.                 <file name="index.php"></file>
  65.                 <file name="form.php"></file>
  66.             </home>
  67.         </views>
  68.  
  69.         <core>
  70.             <class name="Application" abstract="false">
  71.                 <state name="method">
  72.                     method
  73.                 </state>
  74.                 <state name="controller">
  75.                     controller
  76.                 </state>
  77.                 <state name="params">
  78.                     params
  79.                 </state>
  80.                 <method name="run">
  81.                     run
  82.                 </method>
  83.             </class>
  84.         </core>
  85.     </components>
  86. </MVC>
Advertisement
Add Comment
Please, Sign In to add comment