downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/internals2.counter.counter-class.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/internals2.counter.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'internals2.counter.counter-class.php',
   
1 => 'Counter',
  ),
 
'up' =>
  array (
   
0 => 'internals2.counter.php',
   
1 => 'The "counter" Extension - A Continuing Example',
  ),
 
'prev' =>
  array (
   
0 => 'internals2.counter.examples.objective.php',
   
1 => 'Objective interface',
  ),
 
'next' =>
  array (
   
0 => 'internals2.counter.counter-class.construct.php',
   
1 => 'Counter::__construct',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div>
   <h1 class="title">The Counter class</h1>
  
  
   <div class="partintro">
    <div id="internals2.counter.counter-class.intro" class="section">
     <h2 class="title">Introduction</h2>
     <p class="simpara">
      Represents a single counter object.
     </p>
    </div>
  
    <div id="internals2.counter.counter-class.synopsis" class="section">
     <h2 class="title">Class synopsis</h2>
    
     <div class="classsynopsis">
      <div class="ooclass"><b class="classname">Counter</b></div>
    
      <div class="classsynopsisinfo">
       <span class="ooclass"><b class="classname">Counter</b></span>
       {</div>
 
      <div class="constructorsynopsis dc-description">
       <span class="methodname"><a href="internals2.counter.counter-class.construct.php" class="function">__construct</a></span>
       ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$name</tt></span>
      [, <span class="methodparam"><span class="type">integer</span> <tt class="parameter">$initial_value</tt></span>
      [, <span class="methodparam"><span class="type">integer</span> <tt class="parameter">$flags</tt></span>
     ]] )</div>

      <div class="methodsynopsis dc-description">
      <span class="type">integer</span> <span class="methodname"><a href="internals2.counter.counter-class.getValue.php" class="function">getValue</a></span>
       ( <span class="methodparam">void</span>
      )</div>
<div class="methodsynopsis dc-description">
      <span class="type">void</span> <span class="methodname"><a href="internals2.counter.counter-class.bumpValue.php" class="function">bumpValue</a></span>
       ( <span class="methodparam"><span class="type">integer</span> <tt class="parameter">$offset</tt></span>
      )</div>
<div class="methodsynopsis dc-description">
      <span class="type">void</span> <span class="methodname"><a href="internals2.counter.counter-class.resetValue.php" class="function">resetValue</a></span>
       ( <span class="methodparam">void</span>
      )</div>
<div class="methodsynopsis dc-description">
      <span class="type">mixed</span> <span class="methodname"><a href="internals2.counter.counter-class.getMeta.php" class="function">getMeta</a></span>
       ( <span class="methodparam"><span class="type">integer</span> <tt class="parameter">$attribute</tt></span>
      )</div>
<div class="methodsynopsis dc-description">
      <span class="modifier">static</span>
      <span class="type">Counter</span> <span class="methodname"><a href="internals2.counter.counter-class.getNamed.php" class="function">getNamed</a></span>
       ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$name</tt></span>
      )</div>
<div class="methodsynopsis dc-description">
      <span class="modifier">static</span>
      <span class="type">void</span> <span class="methodname"><a href="internals2.counter.counter-class.setCounterClass.php" class="function">setCounterClass</a></span>
       ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$name</tt></span>
      )</div>

     }</div>
    </div>
   </div>
  
  

  

  

  
  
  
  
  

  

  <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="internals2.counter.counter-class.construct.php">Counter::__construct</a> — Creates an instance of a Counter which maintains a single numeric value.</li><li><a href="internals2.counter.counter-class.getValue.php">Counter::getValue</a> — Get the current value of a counter.</li><li><a href="internals2.counter.counter-class.bumpValue.php">Counter::bumpValue</a> — Change the current value of a counter.</li><li><a href="internals2.counter.counter-class.resetValue.php">Counter::resetValue</a> — Reset the current value of a counter.</li><li><a href="internals2.counter.counter-class.getMeta.php">Counter::getMeta</a> — Return a piece of metainformation about a counter.</li><li><a href="internals2.counter.counter-class.getNamed.php">Counter::getNamed</a> — Retrieve an existing named counter.</li><li><a href="internals2.counter.counter-class.setCounterClass.php">Counter::setCounterClass</a> — Set the class returned by Counter::getNamed.</li></ul>
</div>
<?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites