<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.cubrid.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'cubrid.constants.php',
    1 => '&Ouml;ntanımlı Sabitler',
    2 => '&Ouml;ntanımlı Sabitler',
  ),
  'up' => 
  array (
    0 => 'book.cubrid.php',
    1 => 'CUBRID',
  ),
  'prev' => 
  array (
    0 => 'cubrid.resources.php',
    1 => '&Ouml;zkaynak T&uuml;rleri',
  ),
  'next' => 
  array (
    0 => 'cubrid.examples.php',
    1 => '&Ouml;rnekler',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/cubrid/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="cubrid.constants" class="appendix">
 <h1 class="title">Öntanımlı Sabitler</h1>

 <p class="simpara">
Buradaki sabitler bu eklenti için
tanımlanmış olup, sadece eklentinin PHP içinde derlenmiş olması veya çalışma
anında dinamik olarak yüklenmesi halinde kullanılabilir.</p>
  <p class="para">
  The following constants can be used when executing SQL statement. They can
  be passed to <span class="function"><a href="function.cubrid-prepare.php" class="function">cubrid_prepare()</a></span> and
  <span class="function"><a href="function.cubrid-execute.php" class="function">cubrid_execute()</a></span>.
  <table class="doctable table">
   <caption><strong>CUBRID SQL execution flags</strong></caption>
    
     <thead>
      <tr>
       <th>Constant</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td><strong><code>CUBRID_INCLUDE_OID</code></strong></td>
       <td>Determine whether to get OID during query execution.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_ASYNC</code></strong></td>
       <td>Execute the query in asynchronous mode.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_EXEC_QUERY_ALL</code></strong></td>
       <td>Execute the query in synchronous mode. This flag must be set
        when executing multiple SQL statements.</td>
      </tr>

     </tbody>
    
   </table>

  </p>

  <p class="para">
  The following constants can be used when fetching the results to specify
  fetch behaviour. They can be passed to <span class="function"><a href="function.cubrid-fetch.php" class="function">cubrid_fetch()</a></span> and
  <span class="function"><a href="function.cubrid-fetch-array.php" class="function">cubrid_fetch_array()</a></span>.
  <table class="doctable table">
   <caption><strong>CUBRID fetch flags</strong></caption>
    
     <thead>
      <tr>
       <th>Constant</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td><strong><code>CUBRID_NUM</code></strong></td>
       <td>Get query result as a numeric array (0-default).</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_ASSOC</code></strong></td>
       <td>Get query result as an associative array.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_BOTH</code></strong></td>
       <td>Get query result as both numeric and associative arrays (default value).</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_OBJECT</code></strong></td>
       <td>Get query result an object.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_LOB</code></strong></td>
       <td>The constant CUBRID_LOB can be used when you want to operate the
        lob object. It can be passed to <span class="function"><a href="function.cubrid-fetch.php" class="function">cubrid_fetch()</a></span>,
        <span class="function"><a href="function.cubrid-fetch-row.php" class="function">cubrid_fetch_row()</a></span>,
        <span class="function"><a href="function.cubrid-fetch-array.php" class="function">cubrid_fetch_array()</a></span>,
        <span class="function"><a href="function.cubrid-fetch-assoc.php" class="function">cubrid_fetch_assoc()</a></span> and
        <span class="function"><a href="function.cubrid-fetch-object.php" class="function">cubrid_fetch_object()</a></span>.</td>
      </tr>

     </tbody>
    
   </table>

  </p>

  <p class="para">
   The following constants can be used when positioning the cursor in query
   results. They can be passed to or returned by 
   <span class="function"><a href="function.cubrid-move-cursor.php" class="function">cubrid_move_cursor()</a></span>.
  <table class="doctable table">
   <caption><strong>CUBRID cursor position flags</strong></caption>
    
     <thead>
      <tr>
       <th>Constant</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td><strong><code>CUBRID_CURSOR_FIRST</code></strong></td>
       <td>Move current cursor to the first position in the result.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_CURSOR_CURRENT</code></strong></td>
       <td>Move current cursor as a default value if the origin is not specified.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_CURSOR_LAST</code></strong></td>
       <td>Move current cursor to the last position in the result.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_CURSOR_SUCCESS</code></strong></td>
       <td>Returned value of <span class="function"><a href="function.cubrid-move-cursor.php" class="function">cubrid_move_cursor()</a></span>
        function in case of success. This flag has been removed from 8.4.1.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_NO_MORE_DATA</code></strong></td>
       <td>Returned value of <span class="function"><a href="function.cubrid-move-cursor.php" class="function">cubrid_move_cursor()</a></span>
        function in case of failure. This flag has been removed from 8.4.1.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_CURSOR_ERROR</code></strong></td>
       <td>Returned value of <span class="function"><a href="function.cubrid-move-cursor.php" class="function">cubrid_move_cursor()</a></span>
        function in case of failure. This flag has been removed from 8.4.1.</td>
      </tr>

     </tbody>
    
   </table>

  </p>

  <p class="para">
   The following constants can be used when setting the auto-commit mode for
   the database connection. They can be passed to
   <span class="function"><a href="function.cubrid-set-autocommit.php" class="function">cubrid_set_autocommit()</a></span> or returned by
   <span class="function"><a href="function.cubrid-get-autocommit.php" class="function">cubrid_get_autocommit()</a></span>.
  <table class="doctable table">
   <caption><strong>CUBRID auto-commit mode flags</strong></caption>
    
     <thead>
      <tr>
       <th>Constant</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td><strong><code>CUBRID_AUTOCOMMIT_TRUE</code></strong></td>
       <td>Enable the auto-commit mode.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_AUTOCOMMIT_FALSE</code></strong></td>
       <td>Disable the auto-commit mode.</td>
      </tr>

     </tbody>
    
   </table>

  </p>

  <p class="para">
   The following constants can be used when setting the database parameter.
   They can be passed to <span class="function"><a href="function.cubrid-set-db-parameter.php" class="function">cubrid_set_db_parameter()</a></span>.
  <table class="doctable table">
   <caption><strong>CUBRID parameter flags</strong></caption>
    
     <thead>
      <tr>
       <th>Constant</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td><strong><code>CUBRID_PARAM_ISOLATION_LEVEL</code></strong></td>
       <td>Transaction isolation level for the database connection.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_PARAM_LOCK_TIMEOUT</code></strong></td>
       <td>Transaction timeout in seconds.</td>
      </tr>

     </tbody>
    
   </table>

  </p>

  <p class="para">
   The following constants can be used when setting the transaction isolation
   level. They can be passed to <span class="function"><a href="function.cubrid-set-db-parameter.php" class="function">cubrid_set_db_parameter()</a></span>
   or returned by <span class="function"><a href="function.cubrid-get-db-parameter.php" class="function">cubrid_get_db_parameter()</a></span>.
  <table class="doctable table">
   <caption><strong>CUBRID isolation level flags</strong></caption>
    
     <thead>
      <tr>
       <th>Constant</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td><strong><code>TRAN_COMMIT_CLASS_UNCOMMIT_INSTANCE</code></strong></td>
       <td>The lowest isolation level (1). A dirty, non-repeatable or
        phantom read may occur for the tuple and a non-repeatable read may
        occur for the table as well.</td>
      </tr>

      <tr>
       <td><strong><code>TRAN_COMMIT_CLASS_COMMIT_INSTANCE</code></strong></td>
       <td>A relatively low isolation level (2). A dirty read does not
        occur, but non-repeatable or phantom read may occur.</td>
      </tr>

      <tr>
       <td><strong><code>TRAN_REP_CLASS_UNCOMMIT_INSTANCE</code></strong></td>
       <td>The default isolation of CUBRID (3). A dirty, non-repeatable or
        phantom read may occur for the tuple, but repeatable read is ensured
        for the table.</td>
      </tr>

      <tr>
       <td><strong><code>TRAN_REP_CLASS_COMMIT_INSTANCE</code></strong></td>
       <td>A relatively low isolation level (4). A dirty read does not
        occur, but non-repeatable or phantom read may.</td>
      </tr>

      <tr>
       <td><strong><code>TRAN_REP_CLASS_REP_INSTANCE</code></strong></td>
       <td>A relatively high isolation level (5). A dirty or non-repeatable
       read does not occur, but a phantom read may.</td>
      </tr>

      <tr>
       <td><strong><code>TRAN_SERIALIZABLE</code></strong></td>
       <td>The highest isolation level (6). Problems concerning concurrency
       (e.g. dirty read, non-repeatable read, phantom read, etc.) do not
       occur.</td>
      </tr>

     </tbody>
    
   </table>

  </p>

  <p class="para">
   The following constants can be used when getting schema information. They
   can be passed to <span class="function"><a href="function.cubrid-schema.php" class="function">cubrid_schema()</a></span>.
  <table class="doctable table">
   <caption><strong>CUBRID schema flags</strong></caption>
    
     <thead>
      <tr>
       <th>Constant</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td><strong><code>CUBRID_SCH_CLASS</code></strong></td>
       <td>Get name and type of table in CUBRID.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_VCLASS</code></strong></td>
       <td>Get name and type of view in CUBRID.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_QUERY_SPEC</code></strong></td>
       <td>Get the query definition of view.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_ATTRIBUTE</code></strong></td>
       <td>Get the attributes of table column.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_CLASS_ATTRIBUTE</code></strong></td>
       <td>Get the attributes of table.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_METHOD</code></strong></td>
       <td>Get the instance method. The instance method is a method called
       by a class instance. It is used more often than the class method
       because most operations are executed in the instance.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_CLASS_METHOD</code></strong></td>
       <td>Get the class method. The class method is a method called by a
        class object. It is usually used to create a new class instance or to
        initialize it. It is also used to access or update class
        attributes.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_METHOD_FILE</code></strong></td>
       <td>Get the information of the file where the method of the table is
        defined.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_SUPERCLASS</code></strong></td>
       <td>Get the name and type of table which table inherites attributes
        from.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_SUBCLASS</code></strong></td>
       <td>Get the name and type of table which inherites attributes from
        this table.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_CONSTRAINT</code></strong></td>
       <td>Get the table constraints.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_TRIGGER</code></strong></td>
       <td>Get the table triggers.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_CLASS_PRIVILEGE</code></strong></td>
       <td>Get the privilege information of table.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_ATTR_PRIVILEGE</code></strong></td>
       <td>Get the privilege information of column.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_DIRECT_SUPER_CLASS</code></strong></td>
       <td>Get the direct super table of table.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_PRIMARY_KEY</code></strong></td>
       <td>Get the table primary key.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_IMPORTED_KEYS</code></strong></td>
       <td>Get imported keys of table.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_EXPORTED_KEYS</code></strong></td>
       <td>Get exported keys of table.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_SCH_CROSS_REFERENCE</code></strong></td>
       <td>Get reference relationship of two tables.</td>
      </tr>

     </tbody>
    
   </table>

  </p>

  <p class="para">
  The following constants can be used when reporting errors. They can be
  returned from <span class="function"><a href="function.cubrid-error-code-facility.php" class="function">cubrid_error_code_facility()</a></span>.
  <table class="doctable table">
   <caption><strong>CUBRID error facility code</strong></caption>
    
     <thead>
      <tr>
       <th>Constant</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td><strong><code>CUBRID_FACILITY_DBMS</code></strong></td>
       <td>The error occurred in CUBRID dbms.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_FACILITY_CAS</code></strong></td>
       <td>The error occurred in CUBRID broker cas.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_FACILITY_CCI</code></strong></td>
       <td>The error occurred in CUBRID cci.</td>
      </tr>

      <tr>
       <td><strong><code>CUBRID_FACILITY_CLIENT</code></strong></td>
       <td>The error occurred in CUBRID PHP client.</td>
      </tr>

     </tbody>
    
   </table>

  </p>
</div>
<?php manual_footer($setup); ?>