Net_UserAgent_Mobile
[ class tree: Net_UserAgent_Mobile ] [ index: Net_UserAgent_Mobile ] [ all elements ]

Class: Net_UserAgent_Mobile_Display

Source Location: /Net_UserAgent_Mobile-0.6/Mobile/Display.php

Class Overview


Display information for Net_UserAgent_Mobile


Author(s):

Version:

  • $Revision: 1.3 $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 50]
Display information for Net_UserAgent_Mobile

Net_UserAgent_Mobile_Display is a class for display information on Net_UserAgent_Mobile. Handy for image resizing or dispatching.

SYNOPSIS:


1 require_once('Net/UserAgent/Mobile.php');
2
3 $agent = &Net_UserAgent_Mobile::factory();
4 $display = $agent->getDisplay();
5
6 $width = $display->getWidth();
7 $height = $display->getHeight();
8 list($width, $height) = $display->getSize();
9
10 if ($display->isColor()) {
11 $depth = $display->getDepth();
12 }



[ Top ]


Method Detail

Net_UserAgent_Mobile_Display (Constructor)   [line 93]

Net_UserAgent_Mobile_Display Net_UserAgent_Mobile_Display( array $data)

constructor

Parameters:

array   $data     display infomation

[ Top ]

calcSize   [line 113]

integer calcSize( )

returns width * height of the display
  • Access: public

[ Top ]

getDepth   [line 165]

integer getDepth( )

returns depth of the display
  • Access: public

[ Top ]

getHeight   [line 152]

integer getHeight( )

returns height of the display
  • Access: public

[ Top ]

getSize   [line 126]

array getSize( )

returns width with height of the display
  • Access: public

[ Top ]

getWidth   [line 139]

integer getWidth( )

returns width of the display
  • Access: public

[ Top ]

isColor   [line 178]

boolean isColor( )

returns true if the display has color capability
  • Access: public

[ Top ]


Documentation generated on Fri, 30 Apr 2004 23:11:42 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.