[TYPO3-project-4-3] ExtJS State Manager - help wanted

Steffen Kamper info at sk-typo3.de
Mon Apr 27 11:52:29 CEST 2009


Hi,

Martin Kutschker schrieb:
> Steffen Kamper schrieb:
>> Hi Masi,
>>
>> Martin Kutschker schrieb:
>>> My connection class is derived from Ext.data.Connection. Should it be
>>> named TYPO3.ext_data.ajaxConnection or simply TYPO3.data.ajaxConnection.
>> second one. I don't think it's needed to use "ext" here as this should
>> be a general naming scheme independent from the framework used.
> 
> But the "data" comes from ExtJS. We could a) use any other scheme we
> wanted to and b) the idea is to make clear that our custom class is an
> extension of an ExtJS class.
> 
> If Dmitry didn't say that we "have to" use a top level vendor namespace
> I had chosen a prefix schem like Ext.data.typo3AjaxConnection.
> 
> And if the other rule didn't allow only for three levels I think this
> would also have been nice: TYPO3.ext.data.ajaxConnection.
> 
> Masi


We also could use a general namespace like
Ext.namespace('TYPO3', 'TYPO3.data');

see
http://extjs.com/blog/2008/05/28/use-namespaces/
http://www.jasonclawson.com/2008/05/28/extjs-using-namespaces-improved/

vg Steffen


More information about the TYPO3-project-4-3 mailing list