PHP Classes

File: tests/permalink.php

Recommend this page to a friend!
  Classes of Ali YILMAZ  >  Mind Framework  >  tests/permalink.php  >  Download  
File: tests/permalink.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Mind Framework
Framework that implements several design patterns
Author: By
Last change:
Date: 3 months ago
Size: 2,060 bytes
 

Contents

Class file image Download
<?php
require_once ('../src/Mind.php');

$Mind = new Mind();


//$str = 'Merhaba dŁnya';
//echo $Mind->permalink($str);

//$str = 'Merhaba dŁnya';
//$option = array(
// 'delimiter' => '_'
//);
//echo $Mind->permalink($str, $option);

//$str = 'Merhaba dŁnya';
//$option = array(
// 'limit'=>'3'
//);
//echo $Mind->permalink($str, $option);

//$str = 'Merhaba dŁnya';
//$option = array(
// 'limit'=>3
//);
//echo $Mind->permalink($str, $option);

//$str = 'Merhaba dŁnya';
//$option = array(
// 'lowercase'=>false
//);
//echo $Mind->permalink($str, $option);

//$str = 'Merhaba dŁnya';
//$option = array(
// 'replacements'=>array(
// 'Merhaba' => 'hello',
// 'dŁnya' => 'world'
// )
//);
//echo $Mind->permalink($str, $option);

//$str = 'Merhaba dŁnya';
//$option = array(
// 'transliterate'=>false
//);
//echo $Mind->permalink($str, $option);

//$str = 'Merhaba dŁnya';
//$option = array(
// 'replacements'=>array(
// 'Merhaba' => 'hello'
// ),
// 'transliterate'=>false
//);
//echo $Mind->permalink($str, $option);

//$str = 'Merhaba dŁnya';
//$option = array(
// 'unique' => array(
// 'tableName' => 'pages'
// )
//);
//echo $Mind->permalink($str, $option);
//$Mind->insert('pages', array('title'=>$str, 'link'=>$Mind->permalink($str, $option)));

//$str = 'Merhaba dŁnya';
//$option = array(
// 'unique' => array(
// 'tableName' => 'pages',
// 'delimiter' => '_'
// )
//);
//echo $Mind->permalink($str, $option);
//$Mind->insert('pages', array('title'=>$str, 'link'=>$Mind->permalink($str, $option)));

// $str = 'Merhaba dŁnya';
// $option = array(
// 'unique' => array(
// 'tableName' => 'pages',
// 'titleColumn' => 'title',
// 'linkColumn' => 'link'
// )
// );
// echo $Mind->permalink($str, $option);
// $Mind->insert('pages', array('title'=>$str, 'link'=>$Mind->permalink($str, $option)));

$str = 'samantha';
$option = array(
   
'unique'=>array(
       
'directory' => './'
   
)
);
echo
$Mind->permalink($str, $option);

For more information send a message to info at phpclasses dot org.