Tips and Tricks of coding with Zend Studio for Eclipse Part 2 by Peter MacIntyre ZCE
http://www.osscube.com/php/deployment...
A quick demo to introduce you to Zend Studio, Zend studio framework and Zend studio integration. Watch this video to uncover few interesting topics such as PHPDoc tag entries, connecting dependent projects (Configuring projects), function definitions in content assist, using the properties view to full effect, using PHPDoc tags for documentation, PHP Code Gallery, code analyzer etc.
Closed Caption:
okay today we're going to be talking
about
group a little bit more um some her
luxurious series and
working its Marco from masts
you guys to the working on this project
and I haven't seen any
sample code being sent back to me
hopefully your understanding when I'm
trying to get across you know it's
conceptual it may not be the exact
coding style you guys use
around the ideas to get
the concerts across reinforced and
just wait to play with some code and see
how it works
in super should work should work I am
so it's a little sporting my and that I
can't see
how are your kind able to code or picked
up on this
worm triangular cross of Lille
I'm be able to send me something akin to
in the class today
arm so
cease-fire topics for our talk about
stay her
the property scoping
all-star or so thus
slideshow different kinds of scope she
can put on your rest its new properties
I'm I just have property in the title
here but it's the supplies also for
your methods as well its so public is
open to
global scope access its servers
somewhere to
an eager for functions in
a peace peace for all its successful
fireworks shit so that's the most
successful
it's also the most vulnerable so you
have to be careful using public's
if you're concerned about the stability
across its
private is
way to define your messaging properties
and giving him only access firms and for
Clark's
so even if you instantiate a class or
sorry impaired across than anything to
find private is not accessible
in the very close
protected is a is a little
more lenient in private it's a
worse to have access to the methods and
properties
from within the defined class and its
two cents
but not outside the cross in the general
code area:
its ok looks mister properties
and then them last one hears final
in its open a global scope
work can't be extended really so
its combinations works
name:private really you can't buy that
and if you don't so far we have been
searched
used in these inner sample code for come
talk to
are if you don't use any our strategic
public private or protected
its then public is a default so if you
just use
a mess and name
with functioning keyword and'. company
attributes on it stroking attributes are
not the exclusive
ok any questions on that
pretty straightforward sick
change so we'll look at some code now
first 1i want to look
is just an example this is nothing to do
with the running
projects but here you were going to use
you'll see some Jets hearing sets and
gets
lessons will ginsburg a little later
she's
right now it's wanna show you the with
these are all public
functions I would miss its it gets and
sets
and book to your balls are protected so
that means that the
can only be use was in this class
or any care trusts so
when looking at here's an
exist this is a cost-efficient assists
sternly
small text me take this little bigger
remembers sis skirts
T
we'll see seen a little better
so again in this class we r
clips all these messages but we're
looking at our mobile class
we're looking at properties those make
model year
the when I love you so again this is a
class definition and gamble here is
we're starting to you see in her
year sensu parts sorry using the new
keywords always-on mobile here
and we're trying to you creating
Instituut object
marker okay here using the SET values
so because they're protected I have to
have some way to access them
the properties in this is C the weights
do it so
and were using our calling the
public functions set your set model said
make
arm now these are
setters and getters and we'll again get
a little more
decisions and sizes in a few minutes
but what we're doing here is we're II
creating mass its
that relate to the
properties so you see the property name
in the function definition swell so
we're talking make model and year
here in passing and Honda Accord
in 2007 for the make model and year and
I'm just simply
echoing else with the Jets
to return the values to me
store slamming screen song going to open
a browser here
and its
show this kodak's
so you see is simply doing what I asked
you to
screen here
see that last crews
smaller in the over/under because
the such
and will make a small so arms
doing here is you think makes model
generating some space in between them
and the year so
also question you see
worked
hers so
true was the
its benefits
here of using getters and setters
few heard of them before
many
quiets cheney
excuse me sneeze
its protects smaller than you
question again the
well question is
arm if you've seen getters and setters
for force you know
as you can tell me what is the images
former she has anyone used getters and
setters before
tanks
some so you use them for
but spring up to size here
are
I the to read over that information so
the has way to protect the
cars its values from so influence
so for using different modules
for different classes from different are
libraries
it's a way to come to protect it from
overlapping XP
demands go this way I'm the worst
polluters
the communes for data validation as well
so is a great way to protect
the data for you said it's so if you
don't know if you're looking for certain
values and you keep double check that
as you can so here's
are the set year on the
our meal class
morning doing here since checking see if
the content I
is in fact digits so we don't
model year that as arm
look strings runners on earth so far you
go
2007 a SS again this is probably good
morning clings to your arm
strain from within them function message
you with her she's from
return to Earth Fare message or
something deals its
ok outside the cost but here just way
too
pick up the value
and he said in the sector saw your
message
and check it before it goes good
is before it said inside the parks so
more should see on the screen here now
is sayer has occurred
so far is sick this a refreshment
browser
I will see again I don't
stop to process some stuff going
something im strain but I couldn't
me a lot more are protected morning
doing here
not look the tote cure work as you can
see them below here
Honda Accord part works
make model but the year is it said
because
arm it's more than just teasing
string and therefore we trigger so this
is
way to protect to value shedding
costs so may seem like there's a little
bit
call overhead in the
setters and getters but again it just
provides better for buffer zone
to Carson
and the data within the costs so here
from skinning
using a gas all we're doing is returning
are
make missed innocence so we're giving
the make
calling a function in our genes
returning the me
and okay that lets it still be protected
I'm and we're handing it of two
60 the cold so stop being affected with
him
for be effected within the costs so as
you can see the
said I'm using protected here public on
the center singers
ok and text their
tablecloths any questions sir
okay
questions ok so what I want you to do
this is going to be
are some lab time is
we have in our requirements
compact issue ages here is we have these
two classes and I'd like to
fine
and am accuse fine art classes
and rate setters and getters for
one of these costs so you can do our
credit card class or the inventory parts
in the city property items
there we want to to have so
security code using credit card
this 1i want to have it
says digits only sweet dreams
to asserts stronger
and the name on the card would have to
be
now for only:
no numbers and card number for example
have to be emerging
so go ahead and take her
10 minutes to do that and
just your teeth and you can take a look
at the close
you have to
Video Length: 16:54
Uploaded By: OSSCubeLLC
View Count: 203