We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Products
Developing with xPDO
Search
[xPDO] Getting list of fields - 3rd party components
82 Posts
maciej.m
Reply #1,
14 years, 4 months ago
Hello,
I wonder how to get list of (mysql) fields I’ve putted in xml schema.
I want to get it out somehow out of my xPDO class instance.
--
Regards
MM
153 Posts
oori
Reply #2,
14 years, 4 months ago
getFields is what you’re after
http://api.modxcms.com/xpdo/xPDO.html#getFields
MODX Staff
10,725 Posts
opengeek
Reply #3,
14 years, 4 months ago
Or possibly
xPDO::getFieldMeta()
if you want to know more about the fields than the names or default values.
Jason Coward
Chief Architect @ MODX
http://www.jasoncoward.com
|
http://twitter.com/drumshaman
|
https://github.com/opengeek