We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Get fieldtype settings

Development and Programming

Musa's avatar
Musa
124 posts
15 years ago
Musa's avatar Musa

Hello, I’m creating a fieldtype addon, is it possible to get settings of another custom built fieldtype settings?

Thanks Musa

       
Musa's avatar
Musa
124 posts
15 years ago
Musa's avatar Musa

Nevermind, i figured it out as like

$query = $this->EE->db->query("SELECT settings FROM exp_fieldtypes WHERE name = 'NAME'");
       
evilsee's avatar
evilsee
4 posts
15 years ago
evilsee's avatar evilsee

Hi

The data thats returned by that query, seems to be encrypted, does anyone on know how to unencrypted it?

Is there perhaps a better way to read the global settings of a fieldtype. I know there is the settings() function, but what if Im trying to get the settings from another class/addon, like a plugin for instance?

Thanks

       
evilsee's avatar
evilsee
4 posts
15 years ago
evilsee's avatar evilsee

ok, I noticed the equals sign at the end of the string, I got the settings array back by base64 decoding it and then unserializing it.

I wonder what the reason is why its saved like that, serialized and base64 encoded?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.