<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Mahsulleri ! &#187; Model</title>
	<atom:link href="http://www.webmahsulleri.com/tag/model/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webmahsulleri.com</link>
	<description>İnsan Programı</description>
	<lastBuildDate>Thu, 02 Sep 2010 17:11:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP ORM Tekbaşına kullanımı</title>
		<link>http://www.webmahsulleri.com/php/php-orm-tekbasina-kullanimi/</link>
		<comments>http://www.webmahsulleri.com/php/php-orm-tekbasina-kullanimi/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 13:00:31 +0000</pubDate>
		<dc:creator>Hüseyin Bora</dc:creator>
				<category><![CDATA[Faces ORM]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP ORM]]></category>
		<category><![CDATA[Entity]]></category>
		<category><![CDATA[FQL]]></category>
		<category><![CDATA[Model]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[ORM]]></category>
		<category><![CDATA[Persistence]]></category>

		<guid isPermaLink="false">http://www.webmahsulleri.com/?p=354</guid>
		<description><![CDATA[PHP ORM
PHP Faces ORM tek başına kullanabilirsiniz bunun için öncelikle aşağıdaki adresten ORM çatısını indirin. İlgili dosyaları bir dizine çıkarın ve kullanacağınız sunucuya taşıyın.
PHP ORM indir.
Yapılandırma
PHP ini dosyanızdan aşağıdaki eklentilerin kullanılabilir halde düzenleyin
extension = pdo.so
extension = pdo_sqlite.so
extension = sqlite.so
extension = pdo_mysql.so
Bir yapılandırma dosyası hazırlayın örneğin config.php dosyası olabilir
Örnek yapılandırma dosyası

define("DB_CONNECTION_STRING","mysql:host=localhost;dbname=faces");//sunucunuz ve veritabanı adı
define("DB_USER","root");//veritabanı kullanıcı adı
define("DB_PASS","abc345");
define("DB_CONNECTOR","PDO");//bu [...]]]></description>
		<wfw:commentRss>http://www.webmahsulleri.com/php/php-orm-tekbasina-kullanimi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Doğrulama Sınıfları (Kendi Doğrulayıcılarınız)</title>
		<link>http://www.webmahsulleri.com/php/php-faces/dogrulama-siniflari-kendi-dogrulayicilariniz/</link>
		<comments>http://www.webmahsulleri.com/php/php-faces/dogrulama-siniflari-kendi-dogrulayicilariniz/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 14:56:37 +0000</pubDate>
		<dc:creator>Hüseyin Bora</dc:creator>
				<category><![CDATA[FDL]]></category>
		<category><![CDATA[Faces ORM]]></category>
		<category><![CDATA[PHP Faces]]></category>
		<category><![CDATA[Controller]]></category>
		<category><![CDATA[Doğrulama]]></category>
		<category><![CDATA[Entity]]></category>
		<category><![CDATA[Faces Controller]]></category>
		<category><![CDATA[Facete]]></category>
		<category><![CDATA[FQL]]></category>
		<category><![CDATA[Model]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[ORM]]></category>
		<category><![CDATA[Persistence]]></category>
		<category><![CDATA[Validation]]></category>

		<guid isPermaLink="false">http://www.webmahsulleri.com/?p=316</guid>
		<description><![CDATA[Doğrulayıcı(Validator) sınıfları durağan(static) metotları kullanan sınıflardır. işlerinizi kolaylaştırması ve yazılımın bütünleşik parçalar halinde kolektif bir yapıda çalışmasına olanak sağlar.
Bir doğrulama metodunun tanımlaması aşağıdaki gibidir


static function required(Component $c,Component $m,$message,$success)

Birinci parametre “Component $c” doğrulama işleminin yapıldığı bileşen
İkinci parametre “Component $m” mesajların yazdırılacağı bileşen
Üçüncü parametre uyarı mesajı
Dördüncü parametre doğrulama mesajı
Örneğin yeni üye kaydı için bir üye kayıt formumuzun [...]]]></description>
		<wfw:commentRss>http://www.webmahsulleri.com/php/php-faces/dogrulama-siniflari-kendi-dogrulayicilariniz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Faces ORM FQL (Faces Query Language)</title>
		<link>http://www.webmahsulleri.com/php/php-faces/faces-orm-fql-faces-query-language/</link>
		<comments>http://www.webmahsulleri.com/php/php-faces/faces-orm-fql-faces-query-language/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 23:45:37 +0000</pubDate>
		<dc:creator>Hüseyin Bora</dc:creator>
				<category><![CDATA[Faces ORM]]></category>
		<category><![CDATA[PHP Faces]]></category>
		<category><![CDATA[Entity]]></category>
		<category><![CDATA[FQL]]></category>
		<category><![CDATA[Model]]></category>
		<category><![CDATA[ORM]]></category>

		<guid isPermaLink="false">http://www.webmahsulleri.com/?p=228</guid>
		<description><![CDATA[FQL varlık nesneleri üzerinde sorgulama yapmanıza olanak tanıyan SQL e benzer bir sorgulama dilidir. FQL Sorguları PHP Faces Framework tarfından doğal SQL sözcüklerine dönüştürülür.
SELECT İfadesi
SELECT takmaisim FROM sıfıfadı takmaisim  WHERE having vb..
Örnekler
SELECT b from Blog b 
SELECT c from Categories c
SELECT b from Blog b WHERE bi.id = 1
SELECT b from Blog b WHERE [...]]]></description>
		<wfw:commentRss>http://www.webmahsulleri.com/php/php-faces/faces-orm-fql-faces-query-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Faces ORM Varlık Sınıfları Arasında İlişkiler</title>
		<link>http://www.webmahsulleri.com/php/php-faces/faces-orm-varlik-siniflari-arasinda-iliskiler/</link>
		<comments>http://www.webmahsulleri.com/php/php-faces/faces-orm-varlik-siniflari-arasinda-iliskiler/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 23:30:24 +0000</pubDate>
		<dc:creator>Hüseyin Bora</dc:creator>
				<category><![CDATA[Faces ORM]]></category>
		<category><![CDATA[PHP Faces]]></category>
		<category><![CDATA[Entity]]></category>
		<category><![CDATA[FQL]]></category>
		<category><![CDATA[Model]]></category>
		<category><![CDATA[ORM]]></category>
		<category><![CDATA[Persistence]]></category>

		<guid isPermaLink="false">http://www.webmahsulleri.com/?p=220</guid>
		<description><![CDATA[ilişkisel annotationlar
@OneToOne
@OneToMany
@ManyToOne
@ManyToMany
üç paremetreleri bulunur
mappedBy = “Sınıf adı”
pk = ” primary key ”
fk = ” foreign key”
CREATE TABLE `blog` (
  `id` int(11) NOT NULL auto_increment,
  `name` varchar(255) default NULL,
  `content` text,
  PRIMARY KEY  (`id`)
)

 CREATE TABLE  comment` (
`comentid` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`content` TEXT NOT NULL ,
`blogid` INT NOT NULL
)

Yukarıdaki yapı şeklinde iki tablomuz olsun
blog [...]]]></description>
		<wfw:commentRss>http://www.webmahsulleri.com/php/php-faces/faces-orm-varlik-siniflari-arasinda-iliskiler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Faces ORM Entity Manager (Varlık Yöneticisi)</title>
		<link>http://www.webmahsulleri.com/php/php-faces/faces-orm-entity-manager/</link>
		<comments>http://www.webmahsulleri.com/php/php-faces/faces-orm-entity-manager/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 23:01:52 +0000</pubDate>
		<dc:creator>Hüseyin Bora</dc:creator>
				<category><![CDATA[Faces ORM]]></category>
		<category><![CDATA[PHP Faces]]></category>
		<category><![CDATA[Entity]]></category>
		<category><![CDATA[FQL]]></category>
		<category><![CDATA[Model]]></category>
		<category><![CDATA[ORM]]></category>
		<category><![CDATA[Persistence]]></category>

		<guid isPermaLink="false">http://www.webmahsulleri.com/?p=209</guid>
		<description><![CDATA[Entity Manager (Varlık Yöneticisi) isminden de anlaşılacağı üzeri varlık sınıflarınız üzerinde temel işlemleri gerçekleştirmenizi sağlar. varlık yöneticisi ister controller sınıfınızda isterseniz entity sınıflarınız içersinde kullanın.
Metotlar
bir varlığı veri tabanına kaydetmek duruma göre insert ya da update sözcükleri üretilir

EntityManager::save(Entity $e)

Örnek

$blog = new Blog();
$blog-&#62;name="Hello world";
$blog-&#62;content="xxxx";
EntityManager::getInstance()-&#62;save($blog);

bir varlığı veri tabanınıda aramak için EntityManager&#8217;ın find metotdu kullanılır. Bu metodun ilk parametresi [...]]]></description>
		<wfw:commentRss>http://www.webmahsulleri.com/php/php-faces/faces-orm-entity-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Faces Entity (Varlıklar)</title>
		<link>http://www.webmahsulleri.com/php/php-faces/faces-entity-varliklar/</link>
		<comments>http://www.webmahsulleri.com/php/php-faces/faces-entity-varliklar/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 22:07:45 +0000</pubDate>
		<dc:creator>Hüseyin Bora</dc:creator>
				<category><![CDATA[Faces ORM]]></category>
		<category><![CDATA[PHP Faces]]></category>
		<category><![CDATA[Entity]]></category>
		<category><![CDATA[FQL]]></category>
		<category><![CDATA[Model]]></category>
		<category><![CDATA[ORM]]></category>
		<category><![CDATA[Persistence]]></category>

		<guid isPermaLink="false">http://www.webmahsulleri.com/?p=201</guid>
		<description><![CDATA[Entity Varlık sınıfları Entity sınıfından genişletilir. genellikle import işlemlerini controllerda yaparsınız. aşağıdaki satırların controller da bulunması iyidir.

import("dbf.persistence");
import("models",true);

import fonksiyonun ikinci parametresinin true verilmesi durumda bu fonksiyon uygulamaya dahil edilecek dosyalara application/uygulamaadi/ içerisinede bakar.
Tekrar konumza yani varlık sınıflarına dönelim. varlık sınıflarını veri tabanındaki tablolarınız ile ilişkilendirirken haritalarken annotationları kullanırsınız.
Annotationlar
@Table(name = &#8220;blog&#8221;)  tablo adı tanımlanır class sözcüğün [...]]]></description>
		<wfw:commentRss>http://www.webmahsulleri.com/php/php-faces/faces-entity-varliklar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Faces ORM Modeline  Giriş</title>
		<link>http://www.webmahsulleri.com/php/php-faces/faces-orm-modeline-giris/</link>
		<comments>http://www.webmahsulleri.com/php/php-faces/faces-orm-modeline-giris/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 21:33:57 +0000</pubDate>
		<dc:creator>Hüseyin Bora</dc:creator>
				<category><![CDATA[Faces ORM]]></category>
		<category><![CDATA[PHP Faces]]></category>
		<category><![CDATA[Entity]]></category>
		<category><![CDATA[FQL]]></category>
		<category><![CDATA[Model]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[ORM]]></category>
		<category><![CDATA[Persistence]]></category>

		<guid isPermaLink="false">http://www.webmahsulleri.com/?p=194</guid>
		<description><![CDATA[Önceki yazılarda da belirtiğim gibi PHP Faces framework model katmanında ORM (Object Relation Mapping) PHP Faces ORM yapısından faydalana bilmeniz için PHP PDO eklentisini aktif durumda olmalı.
PDO eklentisini php.ini dosyasından aktif duruma getirebilirsiniz. windows işletim sistemi için uzantılar .dll şeklinde olacak.
extension = pdo.so
extension = pdo_sqlite.so
extension = sqlite.so
extension = pdo_mysql.so
ORM programcıyı CRUD(Create, read, update,delete) işlemlerini kolaylaştıran [...]]]></description>
		<wfw:commentRss>http://www.webmahsulleri.com/php/php-faces/faces-orm-modeline-giris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
