Clasa paginare

Ai o întrebare legată de PHP? Incercăm să îi găsim soluţie. Sau poate doar vrei să publici un cod interesant.

Moderatori: Zamolxe, Moderatori


Avatar utilizator
Birkoff
Senior Member
Mesaje: 6380
Membru din: Joi Mar 18, 2004 2:34 pm
Localitate: Bucuresti
Contact:

Mesajde Birkoff » Mar Ian 31, 2012 3:58 pm

1) )
2)
3) (open source)
4) Vrei un magazin virtual la cheie, usor de folosit, cu api-uri incluse pentru maximizarea vanzarilor si multe alte facilitati? Da un semn si discutam.

Sekundes
PHPRomania Supporter
Mesaje: 29
Membru din: Joi Iun 16, 2011 5:53 pm

Mesajde Sekundes » Mar Ian 31, 2012 4:25 pm


Avatar utilizator
socu
Senior Member
Mesaje: 470
Membru din: Mie Apr 22, 2009 11:05 pm
Localitate: Marghita

Mesajde socu » Mar Ian 31, 2012 6:44 pm


Sekundes
PHPRomania Supporter
Mesaje: 29
Membru din: Joi Iun 16, 2011 5:53 pm

Mesajde Sekundes » Mie Feb 01, 2012 2:30 pm


Avatar utilizator
socu
Senior Member
Mesaje: 470
Membru din: Mie Apr 22, 2009 11:05 pm
Localitate: Marghita

Mesajde socu » Mie Feb 01, 2012 2:41 pm


Sekundes
PHPRomania Supporter
Mesaje: 29
Membru din: Joi Iun 16, 2011 5:53 pm

Mesajde Sekundes » Mie Feb 01, 2012 2:57 pm


Avatar utilizator
socu
Senior Member
Mesaje: 470
Membru din: Mie Apr 22, 2009 11:05 pm
Localitate: Marghita

Mesajde socu » Mie Feb 01, 2012 3:03 pm


Sekundes
PHPRomania Supporter
Mesaje: 29
Membru din: Joi Iun 16, 2011 5:53 pm

Mesajde Sekundes » Mie Feb 01, 2012 3:14 pm


nevvermind
Senior Member
Mesaje: 1264
Membru din: Mar Iun 22, 2010 3:17 pm

Mesajde nevvermind » Mie Feb 01, 2012 8:53 pm

Vezi si Zend_Paginator ce fel functioneaza. E destul de asemanator cu clasa ta.

Ideea este sa folosesti un adaptor al paginarii (printr-o interfata). Astfel poti folosi paginarea pt un array, un obiect care implementeaza Traversable, un rowset de DB (sau un PDOStatement), liniile unui fisier, noduri XML etc.

interface Paginator_Adapter;

class Paginator_Adapter_Array implements Paginator_Adapter

$pagAdapter = new Paginator_Adapter_Array($array);
new Paginator($pagAdapter);

quadmachine
Senior Member
Mesaje: 807
Membru din: Sâm Iul 10, 2010 4:58 pm
Localitate: Ploiesti
Contact:

Mesajde quadmachine » Joi Feb 02, 2012 11:28 am


Avatar utilizator
Birkoff
Senior Member
Mesaje: 6380
Membru din: Joi Mar 18, 2004 2:34 pm
Localitate: Bucuresti
Contact:

Mesajde Birkoff » Joi Feb 02, 2012 12:18 pm

1) )
2)
3) (open source)
4) Vrei un magazin virtual la cheie, usor de folosit, cu api-uri incluse pentru maximizarea vanzarilor si multe alte facilitati? Da un semn si discutam.


Înapoi la “Cod PHP”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 14 vizitatori