简体   繁体   English

如何在Typo3中创建具有属性的自定义抽象对象?

[英]How to create custom abstract objects with attributes in Typo3?

I am now familiar with "basic" Typo3 - Usage and templating. 我现在熟悉“基本” Typo3-用法和模板。 Right now, I am stuck though, because I am not familiar with custom extensions etc. I am looking for a way to represent Objects, that I get via methods of my own php-class from an XML-DB-Interface, in Typo3. 但是,由于我不熟悉自定义扩展等,我现在陷入困境。我正在寻找一种表示对象的方法,该方法是通过Typo3中的XML-DB-Interface通过我自己的php类的方法获得的。

To be more precise : 更准确地说:

I have a really complex XML-Interface and a php-class which is complete already, to interact with that interface, making methods available, that are meant to interact with different object-types in the underlying DB. 我有一个非常复杂的XML接口和一个php类,该类已经完成了,可以与该接口进行交互,使方法可用,这些方法可以与基础DB中的不同对象类型进行交互。

I now want to create abstract objects with the corresponding attributes in Typo3 to be able to work with them in typo3 (display/create/modify). 我现在想在Typo3中创建具有相应属性的抽象对象,以便能够在typo3中使用它们(显示/创建/修改)。 Furthermore, it would be helpful to find a way to "link" the functions of my php class to typo3-functions, so I can (perhaps?!) build up some kind of simple report-generator that generates conditional reports of those objects. 此外,找到一种将php类的功能“链接”到typo3-functions的方法将很有帮助,因此我可以(也许?!)构建某种简单的报告生成器,以生成这些对象的条件报告。

Could anybody lead me into the right direction and link (a) HowTo(s) or perhaps even examples that I could modify? 有人能引导我朝正确的方向发展并链接(a)HowTo(s)甚至是我可以修改的示例吗?

Thanks in advance, Oliver 预先感谢,奥利弗

Check how DBAL extension is coded. 检查如何编码DBAL扩展名。 https://docs.typo3.org/typo3cms/extensions/dbal/ https://docs.typo3.org/typo3cms/extensions/dbal/

You might want to implement this XML system as your own abstraction system to store your objects and use TYPO3 backend forms to manipulate those. 您可能希望将此XML系统实现为您自己的抽象系统,以存储您的对象并使用TYPO3后端表单来操作这些对象。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM