[Agavi-Tickets] [Agavi] #1287: Remove call overload and ArrayObject usage from AgaviUploadedFile

1 view
Skip to first unread message

Agavi

unread,
May 25, 2010, 8:02:42 AM5/25/10
to tic...@lists.agavi.org
#1287: Remove call overload and ArrayObject usage from AgaviUploadedFile
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: new
Priority: low | Milestone: 1.1
Component: request | Version:
Severity: minor | Keywords:
Has_patch: 0 |
---------------------+------------------------------------------------------
* no code completion as there are no {{{getSize()}}} methods etc
* method names are case sensitive due to the way {{{__call()}}} operates
* performance
* it's entirely unnecessary anyway
* let's use {{{ArrayAccess}}} and {{{__get()}}} and friends instead
* also one issue less when running on hphp :)

(Ideally, I'd like to drop property and array access entirely, but that's
too big of a BC break, so...)

--
Ticket URL: <http://trac.agavi.org/ticket/1287>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5



_______________________________________________
Agavi Tickets Mailing List
tic...@lists.agavi.org
http://lists.agavi.org/mailman/listinfo/tickets

--
You received this message because you are subscribed to the Google Groups "Agavi Tickets" group.
To post to this group, send email to agavi-...@googlegroups.com.
To unsubscribe from this group, send email to agavi-ticket...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/agavi-tickets?hl=en.

Agavi

unread,
Aug 5, 2010, 4:20:00 PM8/5/10
to tic...@lists.agavi.org
#1287: Remove call overload and ArrayObject usage from AgaviUploadedFile
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: new
Priority: low | Milestone: 1.1
Component: request | Version:
Severity: minor | Keywords:
Has_patch: 0 |
---------------------+------------------------------------------------------

Comment(by niklas@…):

I attached a patch which gets rid of ArrayObject and implements
ArrayAccess.

This will break BC in the constructor. If we are willing to break more BC
and get rid of using AgaviUploadedFile as an array completely, we could
just drop the ArrayAccess specific things and use the OO methods I wrote.

I am going to write tests for the current trunk behavior of
AgaviUploadedFile and attach them to this ticket.

I am going to check how much the constructor change affects other agavi
code and try to patch them aswell.

Cheers,
Niklas

--
Ticket URL: <http://trac.agavi.org/ticket/1287#comment:1>

Agavi

unread,
Aug 7, 2010, 9:17:56 AM8/7/10
to tic...@lists.agavi.org
#1287: Remove call overload and ArrayObject usage from AgaviUploadedFile
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: new
Priority: low | Milestone: 1.1
Component: request | Version:
Severity: minor | Keywords:
Has_patch: 0 |
---------------------+------------------------------------------------------
Changes (by david):

* cc: niklas@… (added)


--
Ticket URL: <http://trac.agavi.org/ticket/1287#comment:2>

Agavi

unread,
Aug 7, 2010, 9:20:15 AM8/7/10
to tic...@lists.agavi.org
#1287: Remove call overload and ArrayObject usage from AgaviUploadedFile
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: new
Priority: low | Milestone: 1.1
Component: request | Version:
Severity: minor | Keywords:
Has_patch: 0 |
---------------------+------------------------------------------------------

Comment(by david):

There are several problems with this patch:

1. why does it use {{{$this->data}}}? Either use
{{{AgaviParameterHolder}}}, or simply use the properties directly (that
would be the better choice, in my opinion)
2. if it implements {{{ArrayAccess}}}, then why are you replacing
{{{$this->tmp_name}}} with {{{$this->data['tmp_name']}}} and so forth?
3. It doesn't follow the coding standards (e.g. {{{if (…)}}} instead of
{{{if(…)}}})

--
Ticket URL: <http://trac.agavi.org/ticket/1287#comment:3>

Agavi

unread,
Aug 10, 2010, 3:31:17 PM8/10/10
to tic...@lists.agavi.org
#1287: Remove call overload and ArrayObject usage from AgaviUploadedFile
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: new
Priority: low | Milestone: 1.1
Component: request | Version:
Severity: minor | Keywords:
Has_patch: 0 |
---------------------+------------------------------------------------------

Comment(by anonymous):

I attached my last (for now, atleast) attempt to address this problem.

I also made some tests mainly to test the array access and initialization.

--
Ticket URL: <http://trac.agavi.org/ticket/1287#comment:4>

Agavi

unread,
Sep 9, 2010, 8:00:53 AM9/9/10
to tic...@lists.agavi.org
#1287: Remove call overload and ArrayObject usage from AgaviUploadedFile
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: new
Priority: low | Milestone: 1.1
Component: request | Version:
Severity: minor | Keywords:
Has_patch: 0 |
---------------------+------------------------------------------------------

Comment(by sHiShAg0tT):

http://www.bloomquistestateservices.com/homeinsurance.htm home insurance
nkjb

--
Ticket URL: <http://trac.agavi.org/ticket/1287#comment:5>

Agavi

unread,
Sep 13, 2010, 11:39:00 PM9/13/10
to tic...@lists.agavi.org
#1287: Remove call overload and ArrayObject usage from AgaviUploadedFile
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: new
Priority: low | Milestone: 1.1
Component: request | Version:
Severity: minor | Keywords:
Has_patch: 0 |
---------------------+------------------------------------------------------

Comment(by cursedsword):

http://www.loqueotrosven.com/ acomplia 44875 http://www.rap-musiq.com/
acomplia prescription %-( http://www.scribblingscribe.com/ prednisone >:DD

--
Ticket URL: <http://trac.agavi.org/ticket/1287#comment:6>

Agavi

unread,
Aug 14, 2011, 11:14:51 AM8/14/11
to tic...@lists.agavi.org
#1287: Remove call overload and ArrayObject usage from AgaviUploadedFile
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: closed

Priority: low | Milestone: 1.1
Component: request | Version:
Severity: minor | Resolution: fixed
Keywords: | Has_patch: 0
---------------------+------------------------------------------------------
Changes (by david):

* status: new => closed
* resolution: => fixed


Comment:

(In [4800]) refactor AgaviUploadedFile, closes #1287

--
Ticket URL: <http://trac.agavi.org/ticket/1287#comment:5>

Agavi

unread,
Aug 14, 2011, 11:51:17 AM8/14/11
to tic...@lists.agavi.org
#1287: Remove call overload and ArrayObject usage from AgaviUploadedFile
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: closed

Priority: low | Milestone: 1.1
Component: request | Version:
Severity: minor | Resolution: fixed
Keywords: | Has_patch: 0
---------------------+------------------------------------------------------

Comment(by david):

(In [4802]) Use methods to access data for property and array access, refs
#1287

--
Ticket URL: <http://trac.agavi.org/ticket/1287#comment:6>

Agavi

unread,
Aug 14, 2011, 12:40:27 PM8/14/11
to tic...@lists.agavi.org
#1287: Remove call overload and ArrayObject usage from AgaviUploadedFile
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: closed

Priority: low | Milestone: 1.1
Component: request | Version:
Severity: minor | Resolution: fixed
Keywords: | Has_patch: 0
---------------------+------------------------------------------------------

Comment(by david):

(In [4804]) Optimize index map use to eliminate array_search() calls, refs
#1287

--
Ticket URL: <http://trac.agavi.org/ticket/1287#comment:7>

Agavi

unread,
Aug 18, 2011, 11:45:00 AM8/18/11
to tic...@lists.agavi.org
#1287: Remove call overload and ArrayObject usage from AgaviUploadedFile
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: closed

Priority: low | Milestone: 1.1
Component: request | Version:
Severity: minor | Resolution: fixed
Keywords: | Has_patch: 0
---------------------+------------------------------------------------------

Comment(by david):

(In [4808]) Only set true as a default for is_uploaded_file field when
fixing up the _FILES array in web request data holders, refs #1287 and
#1412

--
Ticket URL: <http://trac.agavi.org/ticket/1287#comment:8>

Agavi

unread,
Nov 9, 2011, 8:28:06 AM11/9/11
to tic...@lists.agavi.org
#1287: Remove call overload and ArrayObject usage from AgaviUploadedFile
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: closed

Priority: low | Milestone: 1.1
Component: request | Version:
Severity: minor | Resolution: fixed
Keywords: | Has_patch: 0
---------------------+------------------------------------------------------

Comment(by david):

(In [4842]) fix API doc for ctor, refs #1287

--
Ticket URL: <http://trac.agavi.org/ticket/1287#comment:9>

Agavi

unread,
Nov 16, 2011, 2:33:56 AM11/16/11
to tic...@lists.agavi.org
#1287: Remove call overload and ArrayObject usage from AgaviUploadedFile
---------------------+------------------------------------------------------
Reporter: david | Owner: david
Type: task | Status: closed

Priority: low | Milestone: 1.1
Component: request | Version:
Severity: minor | Resolution: fixed
Keywords: | Has_patch: 0
---------------------+------------------------------------------------------

Comment(by david):

(In [4869]) remove use of tempfile() in AgaviUploadedFile, refs #1412,
#1287 and #1449

--
Ticket URL: <http://trac.agavi.org/ticket/1287#comment:10>

Reply all
Reply to author
Forward
0 new messages